Properly disable unit design/radar without HQ in mp/sk.

Fixes #3305.
master
cybersphinx 2012-03-15 13:58:02 +01:00
parent 20e6311b21
commit d5a97c0399
1 changed files with 7 additions and 4 deletions

View File

@ -92,6 +92,13 @@ function eventGameInit()
"R-Wpn-Rocket-Damage01",
"R-Defense-WallTower01");
if (baseType == CAMP_CLEAN)
{
// No HQ, so no design or radar
setMiniMap(false);
setDesign(false);
}
for (var playnum = 0; playnum < maxPlayers; playnum++)
{
enableResearch("R-Sys-Sensor-Turret01", playnum);
@ -121,10 +128,6 @@ function eventGameInit()
removeStruct(s);
}
}
if (playnum == selectedPlayer && playerData[playnum].difficulty != INSANE)
{
setMiniMap(false); // hide minimap since no HQ
}
}
else if (baseType == CAMP_BASE)
{