From c0ca35a4ff76fe7703b93bfb93ee3f80d930fe68 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 1 Oct 2010 20:57:30 +1300 Subject: [PATCH] fix AI jam in cnc --- OpenRA.Mods.RA/HackyAI.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/HackyAI.cs b/OpenRA.Mods.RA/HackyAI.cs index 3b296403cb..04b62bdf10 100644 --- a/OpenRA.Mods.RA/HackyAI.cs +++ b/OpenRA.Mods.RA/HackyAI.cs @@ -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)