fix AI jam in cnc

This commit is contained in:
Chris Forbes
2010-10-01 20:57:30 +13:00
parent 1bff8559fb
commit c0ca35a4ff

View File

@@ -88,7 +88,9 @@ namespace OpenRA.Mods.RA
bool HasAdequatePower()
{
return playerPower.PowerProvided > playerPower.PowerDrained * 1.2;
/* note: CNC `fact` provides a small amount of power. don't get jammed because of that. */
return playerPower.PowerProvided > 50 &&
playerPower.PowerProvided > playerPower.PowerDrained * 1.2;
}
ActorInfo ChooseBuildingToBuild(ProductionQueue queue)