make UOG actually use FindUnitsAtMouse rather than homebrewing it

This commit is contained in:
Chris Forbes
2010-07-21 18:24:05 +12:00
parent 4065a4f6a2
commit 2584aad0c7

View File

@@ -61,8 +61,8 @@ namespace OpenRA.Orders
.FirstOrDefault(a => a != null); .FirstOrDefault(a => a != null);
return c ?? return c ??
(world.SelectActorsInBox(Game.CellSize * xy, (world.FindUnitsAtMouse(mi.Location)
Game.CellSize * xy).Any() .Any(a => a.Info.Traits.Contains<SelectableInfo>())
? "select" : "default"); ? "select" : "default");
} }
} }