AI support power activation needs to go through order manager

fixes a desync whenever it will do so only on the host

+island map AI which will only build navy / air force to test
it and have a suitable bot for those map types (fixes pathfinder
eating up all CPU because it can't reach you with ground units)
This commit is contained in:
Matthias Mailänder
2013-03-14 10:48:36 +01:00
parent 431961401f
commit 36e820308f
2 changed files with 52 additions and 1 deletions

View File

@@ -1318,7 +1318,8 @@ namespace OpenRA.Mods.RA.AI
{
var attackLocation = FindAttackLocationToSupportPower(5);
if (attackLocation == null) return;
sp.Activate(new Order() { TargetLocation = attackLocation.Value });
world.IssueOrder(new Order(sp.Info.OrderName, supportPowerMngr.self, false) { TargetLocation = attackLocation.Value });
}
}
}