Remove WorldUtils.FindFrozenActorsAtMouse.

This commit is contained in:
Paul Chote
2013-09-27 18:08:47 +12:00
parent 1ca9c90565
commit 3ae75362bb
4 changed files with 7 additions and 12 deletions

View File

@@ -21,15 +21,6 @@ namespace OpenRA
{
public static class WorldUtils
{
public static readonly IEnumerable<FrozenActor> NoFrozenActors = new FrozenActor[0].AsEnumerable();
public static IEnumerable<FrozenActor> FindFrozenActorsAtMouse(this World world, int2 mouseLocation)
{
if (world.RenderPlayer == null)
return NoFrozenActors;
return world.ScreenMap.FrozenActorsAt(world.RenderPlayer, Game.viewport.ViewToWorldPx(mouseLocation));
}
public static IEnumerable<Actor> FindActorsInBox(this World world, CPos tl, CPos br)
{
// TODO: Support diamond boxes for isometric maps?