From cc44139eb14e39ca3d442394f4cfb4ca04c8dcb1 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 11 Aug 2013 12:42:35 +1200 Subject: [PATCH] Fix z-offset for muzzle flashes. Fixes #3667. --- OpenRA.Mods.RA/Render/WithMuzzleFlash.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))); } }