remove unitinfluence debug, not needed anymore

This commit is contained in:
Chris Forbes
2011-03-12 19:48:47 +13:00
parent cf6a1583c6
commit 8a14662bc1
2 changed files with 0 additions and 15 deletions

View File

@@ -92,7 +92,6 @@ namespace OpenRA.Graphics
foreach (var image in SpritesToRender() ) foreach (var image in SpritesToRender() )
image.Sprite.DrawAt(image.Pos, this.GetPaletteIndex(image.Palette), image.Scale); image.Sprite.DrawAt(image.Pos, this.GetPaletteIndex(image.Palette), image.Scale);
uiOverlay.Draw(this, world);
// added for contrails // added for contrails
foreach (var a in world.Actors) foreach (var a in world.Actors)

View File

@@ -38,20 +38,6 @@ namespace OpenRA
return Game.modData.SheetBuilder.Add(data, new Size(Game.CellSize, Game.CellSize)); 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<DeveloperMode>().UnitInfluenceDebug)
{
var uim = world.WorldActor.Trait<UnitInfluence>();
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<int2, bool> cells ) public void DrawGrid( WorldRenderer wr, Dictionary<int2, bool> cells )
{ {
foreach( var c in cells ) foreach( var c in cells )