On orders, the mouse button is now considered part on issuing the order, not resolving it.

This commit is contained in:
Bob
2009-10-24 19:42:54 +13:00
parent d25bd8550a
commit 78c9ae53df
11 changed files with 85 additions and 92 deletions

View File

@@ -22,14 +22,6 @@ namespace OpenRa.Game.Traits
{
this.self = self;
fromCell = toCell;
}
public void SetNextAction( CurrentAction nextAction )
{
if( currentAction == null )
currentAction = nextAction;
else
currentAction.NextAction = nextAction;
}
public void QueueAction( CurrentAction nextAction )
@@ -55,8 +47,10 @@ namespace OpenRa.Game.Traits
fromCell = toCell;
}
public Order Order(Actor self, int2 xy)
{
public Order Order(Actor self, int2 xy, bool lmb)
{
if( lmb ) return null;
if (xy != toCell)
return new MoveOrder(self, xy);