Fix selection decorations being drawn behind fog.

This commit is contained in:
Paul Chote
2013-04-10 22:12:51 +12:00
parent 9b7bb53287
commit 707c86fbbb
2 changed files with 8 additions and 1 deletions

View File

@@ -31,8 +31,10 @@ namespace OpenRA.Traits
public void RenderAfterWorld(WorldRenderer wr)
{
var bounds = self.Bounds.Value;
if (self.World.FogObscures(self))
return;
var bounds = self.Bounds.Value;
var xy = new float2(bounds.Left, bounds.Top);
var xY = new float2(bounds.Left, bounds.Bottom);