From 06ed722b7a339d7df13d7d21452d4f7654cd264d Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 26 Nov 2010 13:04:53 +1300 Subject: [PATCH] Render healthbars / target lines / minefield grids *above* shroud. --- OpenRA.Game/Graphics/WorldRenderer.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/OpenRA.Game/Graphics/WorldRenderer.cs b/OpenRA.Game/Graphics/WorldRenderer.cs index 442b9521bc..a571d3de29 100644 --- a/OpenRA.Game/Graphics/WorldRenderer.cs +++ b/OpenRA.Game/Graphics/WorldRenderer.cs @@ -107,11 +107,6 @@ namespace OpenRA.Graphics foreach (var t in a.TraitsImplementing()) t.RenderAfterWorld(this, a); - foreach (var a in world.Selection.Actors) - if (!a.Destroyed) - foreach (var t in a.TraitsImplementing()) - t.RenderAfterWorld(this, a); - if (world.OrderGenerator != null) world.OrderGenerator.RenderAfterWorld(this, world); @@ -119,6 +114,13 @@ namespace OpenRA.Graphics world.LocalPlayer.Shroud.Draw( this ); Game.Renderer.DisableScissor(); + + foreach (var a in world.Selection.Actors) + if (!a.Destroyed) + foreach (var t in a.TraitsImplementing()) + t.RenderAfterWorld(this, a); + + Game.Renderer.Flush(); } void DrawBox(RectangleF r, Color color)