strip some redundancy from UnitOrders, but it still sucks; fix nudges breaking everything

This commit is contained in:
Chris Forbes
2010-07-22 08:03:44 +12:00
parent b2454c8b8d
commit a78001a5cc
2 changed files with 5 additions and 5 deletions

View File

@@ -251,8 +251,8 @@ namespace OpenRA.Traits
return; /* don't allow ourselves to be pushed around
* by the enemy! */
if (self.GetCurrentActivity() is Move)
return; /* we're *already* moving; nudging isn't going to help */
if (!self.IsIdle)
return; /* don't nudge if we're busy doing something! */
// pick an adjacent available cell.
var availCells = new List<int2>();