WithMuzzleOverlay is decoration

This commit is contained in:
dnqbob
2022-08-20 21:36:41 +08:00
committed by abcdefg30
parent ce254f8b46
commit 29fc2b80d9

View File

@@ -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,