make UOG actually use FindUnitsAtMouse rather than homebrewing it
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user