Fixes bug #23: enemy units can be ordered

This commit is contained in:
Chris Forbes
2009-10-23 21:31:52 +13:00
parent dd8c70d3c2
commit ac82e1451e
2 changed files with 7 additions and 2 deletions

View File

@@ -63,7 +63,10 @@ namespace OpenRa.Game
}
public Order Order( int2 xy )
{
{
if (Owner != Game.LocalPlayer)
return null;
return traits.WithInterface<Traits.IOrder>()
.Select( x => x.Order( this, xy ) )
.FirstOrDefault( x => x != null );