From 29fc2b80d9b102dfd86e908d92191f5fd45ce53d Mon Sep 17 00:00:00 2001 From: dnqbob Date: Sat, 20 Aug 2022 21:36:41 +0800 Subject: [PATCH] WithMuzzleOverlay is decoration --- OpenRA.Mods.Common/Traits/Render/WithMuzzleOverlay.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Render/WithMuzzleOverlay.cs b/OpenRA.Mods.Common/Traits/Render/WithMuzzleOverlay.cs index 384fc30bd3..d23f978393 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithMuzzleOverlay.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithMuzzleOverlay.cs @@ -59,7 +59,11 @@ namespace OpenRA.Mods.Common.Traits.Render else getFacing = () => WAngle.Zero; - var muzzleFlash = new Animation(self.World, render.GetImage(self), getFacing); + var muzzleFlash = new Animation(self.World, render.GetImage(self), getFacing) + { + IsDecoration = true + }; + visible.Add(barrel, false); anims.Add(barrel, new AnimationWithOffset(muzzleFlash,