On orders, the mouse button is now considered part on issuing the order, not resolving it.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user