moved helper functions out of Game, into WorldUtils
This commit is contained in:
@@ -89,7 +89,7 @@ namespace OpenRa
|
||||
return null;
|
||||
|
||||
var loc = mi.Location + Game.viewport.Location;
|
||||
var underCursor = Game.FindUnits(loc, loc).FirstOrDefault();
|
||||
var underCursor = Game.world.FindUnits(loc, loc).FirstOrDefault();
|
||||
|
||||
if (underCursor != null && !underCursor.traits.Contains<Selectable>())
|
||||
underCursor = null;
|
||||
|
||||
Reference in New Issue
Block a user