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);
return c ??
(world.SelectActorsInBox(Game.CellSize * xy,
Game.CellSize * xy).Any()
(world.FindUnitsAtMouse(mi.Location)
.Any(a => a.Info.Traits.Contains<SelectableInfo>())
? "select" : "default");
}
}