Do not consider waiting harvesters to be idle
This commit is contained in:
@@ -702,9 +702,7 @@ namespace OpenRA.Mods.Common.AI
|
|||||||
{
|
{
|
||||||
var act = harvester.GetCurrentActivity();
|
var act = harvester.GetCurrentActivity();
|
||||||
|
|
||||||
// A Wait activity is technically idle:
|
if (act.NextActivity == null || act.NextActivity.GetType() != typeof(FindResources))
|
||||||
if ((act.GetType() != typeof(Wait)) &&
|
|
||||||
(act.NextActivity == null || act.NextActivity.GetType() != typeof(FindResources)))
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user