Do not consider waiting harvesters to be idle

This commit is contained in:
reaperrr
2016-01-29 02:27:43 +01:00
parent 1f35a1c010
commit ed3c0799d3

View File

@@ -702,9 +702,7 @@ namespace OpenRA.Mods.Common.AI
{
var act = harvester.GetCurrentActivity();
// A Wait activity is technically idle:
if ((act.GetType() != typeof(Wait)) &&
(act.NextActivity == null || act.NextActivity.GetType() != typeof(FindResources)))
if (act.NextActivity == null || act.NextActivity.GetType() != typeof(FindResources))
continue;
}