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:
@@ -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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user