diff --git a/OpenRA.Game/Graphics/WorldRenderer.cs b/OpenRA.Game/Graphics/WorldRenderer.cs index 06df9af6a6..6dbe5759a5 100644 --- a/OpenRA.Game/Graphics/WorldRenderer.cs +++ b/OpenRA.Game/Graphics/WorldRenderer.cs @@ -92,7 +92,6 @@ namespace OpenRA.Graphics foreach (var image in SpritesToRender() ) image.Sprite.DrawAt(image.Pos, this.GetPaletteIndex(image.Palette), image.Scale); - uiOverlay.Draw(this, world); // added for contrails foreach (var a in world.Actors) diff --git a/OpenRA.Game/UiOverlay.cs b/OpenRA.Game/UiOverlay.cs index eec3943b04..9bd8770d9b 100644 --- a/OpenRA.Game/UiOverlay.cs +++ b/OpenRA.Game/UiOverlay.cs @@ -38,20 +38,6 @@ namespace OpenRA return Game.modData.SheetBuilder.Add(data, new Size(Game.CellSize, Game.CellSize)); } - public void Draw( WorldRenderer wr, World world ) - { - if( world.LocalPlayer == null ) return; - if (world.LocalPlayer.PlayerActor.Trait().UnitInfluenceDebug) - { - var uim = world.WorldActor.Trait(); - - for (var i = world.Map.Bounds.Left; i < world.Map.Bounds.Right; i++) - for (var j = world.Map.Bounds.Top; j < world.Map.Bounds.Bottom; j++) - if (uim.GetUnitsAt(new int2(i, j)).Any()) - unitDebug.DrawAt(wr, Game.CellSize * new float2(i, j), "terrain"); - } - } - public void DrawGrid( WorldRenderer wr, Dictionary cells ) { foreach( var c in cells )