diff --git a/OpenRA.Mods.RA/Effects/CashTick.cs b/OpenRA.Mods.RA/Effects/CashTick.cs index a1b5998211..8d924734e7 100644 --- a/OpenRA.Mods.RA/Effects/CashTick.cs +++ b/OpenRA.Mods.RA/Effects/CashTick.cs @@ -44,6 +44,9 @@ namespace OpenRA.Mods.RA.Effects public IEnumerable Render(WorldRenderer wr) { + if (wr.world.FogObscures(pos.ToCPos())) + yield break; + yield return new TextRenderable(font, pos, 0, color, text); } } diff --git a/OpenRA.Mods.RA/Render/WithMuzzleFlash.cs b/OpenRA.Mods.RA/Render/WithMuzzleFlash.cs index 91bcc97833..7bf24fe8ea 100644 --- a/OpenRA.Mods.RA/Render/WithMuzzleFlash.cs +++ b/OpenRA.Mods.RA/Render/WithMuzzleFlash.cs @@ -58,7 +58,8 @@ namespace OpenRA.Mods.RA.Render anims.Add(barrel, new AnimationWithOffset(muzzleFlash, () => arm.MuzzleOffset(self, barrel), - () => !visible[barrel])); + () => !visible[barrel], + p => WithTurret.ZOffsetFromCenter(self, p, 2))); } }