Skip to content

Commit

Permalink
bug fixes + new map
Browse files Browse the repository at this point in the history
  • Loading branch information
Robosturm committed Dec 15, 2023
1 parent bad26c2 commit 038b89b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
Binary file modified maps/2_player/Where Giants Have Fallen.map
Binary file not shown.
4 changes: 4 additions & 0 deletions objects/mapselection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ void MapSelection::updateSelection()
m_Items[i]->setHtmlText(headerInfo.m_mapName + mapNameEnding);
}
}
else
{
CONSOLE_PRINT("Filtered out map: " + fullFilename, GameConsole::eDEBUG);
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion objects/playerselection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,9 @@ void PlayerSelection::showSelectCOPerks(qint32 player)

void PlayerSelection::selectPlayerAi(qint32 player, GameEnums::AiTypes eAiType)
{
if (player >= 0 && player < m_pMap->getPlayerCount())
if (m_pMap != nullptr &&
player >= 0 &&
player < m_pMap->getPlayerCount())
{
CONSOLE_PRINT("PlayerSelection::selectPlayerAi for player " + QString::number(player) + " with control type " + QString::number(eAiType), GameConsole::eDEBUG);
m_pMap->getPlayer(player)->setControlType(eAiType);
Expand Down
4 changes: 2 additions & 2 deletions resources/scripts/weapons/weapon_bomb.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ var Constructor = function()
["RECON", 105],

// tanks
["FLAK", 55],
["HOVERFLAK", 55],
["FLAK", 85],
["HOVERFLAK", 85],
["LIGHT_TANK", 105],
["HOVERCRAFT", 105],

Expand Down
4 changes: 2 additions & 2 deletions resources/scripts/weapons/weapon_vulcan_cannon.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ var Constructor = function()

//air
["DUSTER", 75],
["FIGHTER", 75],
["BOMBER", 75],
["FIGHTER", 70],
["BOMBER", 70],
["STEALTHBOMBER", 75],
["TRANSPORTPLANE", 75],
["BLACK_BOMB", 75],
Expand Down

0 comments on commit 038b89b

Please sign in to comment.