Now much more strictly restricts the game to 1 foundation at once.

This was SVN commit r10344.
This commit is contained in:
James Baillie 2011-09-30 16:50:33 +00:00
parent a5a134fa87
commit 64a0a5e58a

View File

@ -247,7 +247,9 @@ var EconomyManager = Class({
for each (var building in this.targetBuildings)
{
var numBuildings = gameState.countEntitiesAndQueuedWithType(gameState.applyCiv(building.template));
if (gameState.findFoundations().length > 0){
return;
}
// If we have too few, build another
if (numBuildings < building.count)
{