use RepairIndicator rather than renderer hack

This commit is contained in:
Chris Forbes
2010-01-02 17:52:24 +13:00
parent 3b53f692df
commit 6b1857e0b6
4 changed files with 32 additions and 16 deletions

View File

@@ -82,18 +82,7 @@ namespace OpenRa.Game.Graphics
spriteRenderer.Flush();
DrawBandBox();
foreach(var a in Game.world.Actors.Where(b => b.Owner == Game.LocalPlayer && b.traits.Contains<Building>() && b.traits.Get<Building>().IsRepairing()))
{
var bounds = a.GetBounds(true);
var repairImages = new Animation("select");
repairImages.PlayRepeating("repair");
spriteRenderer.DrawSprite(repairImages.Image, new float2(.5f * (bounds.Left + bounds.Right)-12, .5f * (bounds.Top + bounds.Bottom)-11), PaletteType.Chrome);
}
DrawBandBox();
if (Game.controller.orderGenerator != null)
Game.controller.orderGenerator.Render();