Restructuring orders.
This commit is contained in:
@@ -21,7 +21,7 @@ namespace OpenRa.Game.Traits
|
||||
public Mobile(Actor self)
|
||||
{
|
||||
this.self = self;
|
||||
fromCell = toCell;
|
||||
fromCell = toCell;
|
||||
Game.UnitInfluence.Update( this );
|
||||
}
|
||||
|
||||
@@ -55,8 +55,8 @@ namespace OpenRa.Game.Traits
|
||||
if( underCursor != null )
|
||||
return null;
|
||||
|
||||
if (xy != toCell)
|
||||
return new MoveOrder(self, xy);
|
||||
if( xy != toCell )
|
||||
return OpenRa.Game.Order.Move( self, xy );
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user