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

@@ -14,11 +14,11 @@ namespace OpenRa.Game
selection = selected.ToList();
}
public IEnumerable<Order> Order( int2 xy )
public IEnumerable<Order> Order( int2 xy, bool lmb )
{
foreach( var unit in selection )
{
var ret = unit.Order( xy );
var ret = unit.Order( xy, lmb );
if( ret != null )
yield return ret;
}