Skip to content

Commit

Permalink
tidy slightly in idle harv handler
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisforbes committed Oct 13, 2012
1 parent da94228 commit c8b1c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenRA.Mods.RA/AI/HackyAI.cs
Expand Up @@ -269,8 +269,8 @@ void AssignRolesToIdleUnits(Actor self)
{
Activity act = a.GetCurrentActivity();
// A Wait activity is technically idle:
if ((act.GetType() != typeof(OpenRA.Mods.RA.Activities.Wait)) &&
(act.NextActivity == null || act.NextActivity.GetType() != typeof(OpenRA.Mods.RA.Activities.FindResources)))
if (!(act is Activities.Wait) &&
(act.NextActivity == null || !(act.NextActivity is Activities.FindResources)))
continue;
}
if (!harv.IsEmpty) continue;
Expand Down

0 comments on commit c8b1c1b

Please sign in to comment.