unit idle tracking via dummy activity; wasn't so bad.

This commit is contained in:
Chris Forbes
2009-12-28 08:26:13 +13:00
parent 47f4815205
commit b7bac5bd16
11 changed files with 83 additions and 48 deletions

View File

@@ -59,7 +59,7 @@ namespace OpenRa.Game.Traits.Activities
}
else
// no refineries reachable?
return null;
return this;
}
else if( unit.Facing != 64 )
return new Turn( 64 ) { NextActivity = this };
@@ -69,7 +69,7 @@ namespace OpenRa.Game.Traits.Activities
renderUnit.PlayCustomAnimation( self, "empty",
() => isDone = true );
return null;
return this;
}
public void Cancel(Actor self)