1
0
forked from mirrors/0ad

Add missing queueplanBuilding.js changes lost somewhere when updating D3654

This was SVN commit r25049.
This commit is contained in:
Angen
2021-03-14 12:59:10 +00:00
parent 6598433108
commit 85f8d97859
@@ -891,7 +891,8 @@ PETRA.ConstructionPlan.prototype.isGo = function(gameState)
{
if (this.goRequirement && this.goRequirement == "houseNeeded")
{
if (!gameState.ai.HQ.canBuild(gameState, "structures/{civ}/house"))
if (!gameState.ai.HQ.canBuild(gameState, "structures/{civ}/house")
!gameState.ai.HQ.canBuild(gameState, "structures/{civ}/apartment"))
return false;
if (gameState.getPopulationMax() <= gameState.getPopulationLimit())
return false;