Merge pull request #6304 from pchote/fix-laser-vis

Don’t display LaserZap if source and dest are hidden.
This commit is contained in:
obrakmann
2014-08-30 12:02:49 +02:00

View File

@@ -83,6 +83,10 @@ namespace OpenRA.Mods.RA.Effects
public IEnumerable<IRenderable> Render(WorldRenderer wr)
{
if (wr.world.FogObscures(wr.world.Map.CellContaining(target)) &&
wr.world.FogObscures(wr.world.Map.CellContaining(args.Source)))
yield break;
if (ticks < info.BeamDuration)
{
var rc = Color.FromArgb((info.BeamDuration - ticks) * 255 / info.BeamDuration, color);