split IOrder

This commit is contained in:
Chris Forbes
2010-01-09 11:49:12 +13:00
parent 6f28dade1e
commit c344045955
25 changed files with 28 additions and 52 deletions

View File

@@ -101,7 +101,7 @@ namespace OpenRa.Game
if (underCursor != null && !underCursor.Info.Selectable)
underCursor = null;
return traits.WithInterface<IOrder>()
return traits.WithInterface<IIssueOrder>()
.Select( x => x.IssueOrder( this, xy, mi, underCursor ) )
.FirstOrDefault( x => x != null );
}