Fix tesla zaps being visible under the fog
This commit is contained in:
@@ -70,6 +70,10 @@ namespace OpenRA.Mods.RA.Graphics
|
||||
public void RenderDebugGeometry(WorldRenderer wr) { }
|
||||
public void Render(WorldRenderer wr)
|
||||
{
|
||||
if (wr.World.FogObscures(wr.World.Map.CellContaining(pos)) &&
|
||||
wr.World.FogObscures(wr.World.Map.CellContaining(pos + length)))
|
||||
return;
|
||||
|
||||
if (!cache.Any() || length != cachedLength || pos != cachedPos)
|
||||
cache = GenerateRenderables(wr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user