This commit is contained in:
Chris Forbes
2010-01-11 19:29:45 +13:00
parent bd6f22c57e
commit e7a99541e5
7 changed files with 11 additions and 12 deletions

View File

@@ -27,9 +27,7 @@ namespace OpenRa.Game.Orders
&& a.traits.Contains<Building>()
&& a.traits.Contains<Selectable>()).FirstOrDefault();
var building = underCursor != null ? underCursor.LegacyInfo as LegacyBuildingInfo : null;
if (building != null)
if (underCursor != null)
yield return new Order("PowerDown", underCursor, null, int2.Zero, null);
}
}