This commit is contained in:
Chris Forbes
2009-11-01 19:57:03 +13:00
parent b9af0d42fe
commit 98e64fc446
2 changed files with 8 additions and 7 deletions

View File

@@ -53,12 +53,12 @@ namespace OpenRa.Game.Traits
if( lmb ) return null;
if( underCursor != null )
return null;
return null;
if (xy == toCell) return null;
if( xy != toCell )
return OpenRa.Game.Order.Move( self, xy );
return null;
return OpenRa.Game.Order.Move( self, xy,
!Game.IsCellBuildable(xy, GetMovementType()) );
}
public void Cancel(Actor self)