pruning LocalOrderSource content

This commit is contained in:
Chris Forbes
2009-12-28 09:41:06 +13:00
parent fc030fae5c
commit 6a0f019045
2 changed files with 5 additions and 2 deletions

View File

@@ -95,6 +95,7 @@ namespace OpenRa.Game
// HACK: Get the first unit in the cell
// This will need to be updated for multiple-infantry-in-a-cell
// HACK: this doesn't work for targeting air units either
var underCursor = Game.UnitInfluence.GetUnitsAt( xy ).FirstOrDefault()
?? Game.BuildingInfluence.GetBuildingAt( xy );