mcv deploy while moving; bounds is slightly bigger than one tile.

This commit is contained in:
Chris Forbes
2009-12-28 18:28:21 +13:00
parent e8fcdf9ae0
commit 71a8f86b2c
2 changed files with 5 additions and 5 deletions

View File

@@ -9,10 +9,10 @@ namespace OpenRa.Game.Traits
public Order IssueOrder(Actor self, int2 xy, MouseInput mi, Actor underCursor)
{
if (mi.Button == MouseButton.Left) return null;
if( xy != self.Location ) return null;
if (mi.Button == MouseButton.Right && self == underCursor)
return new Order("DeployMcv", self, null, int2.Zero, null);
return new Order("DeployMcv", self, null, int2.Zero, null);
return null;
}
public void ResolveOrder( Actor self, Order order )