Demotruck logic

This commit is contained in:
Paul Chote
2010-01-03 23:54:46 +13:00
parent 44b6469ee6
commit 38ac11e9c7
5 changed files with 5 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ namespace OpenRa.Game.Orders
var loc = mi.Location + Game.viewport.Location;
var underCursor = Game.FindUnits(loc, loc)
.Where(a => a.Owner == Game.LocalPlayer
&& a.traits.Contains<Unit>()
&& a.traits.WithInterface<IChronoshiftable>().Any()
&& a.Info.Selectable).FirstOrDefault();
var unit = underCursor != null ? underCursor.Info as UnitInfo : null;