Skip to content

Commit

Permalink
WithMuzzleOverlay is decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
dnqbob authored and abcdefg30 committed Aug 21, 2022
1 parent ce254f8 commit 29fc2b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OpenRA.Mods.Common/Traits/Render/WithMuzzleOverlay.cs
Expand Up @@ -59,7 +59,11 @@ public WithMuzzleOverlay(Actor self, WithMuzzleOverlayInfo info)
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,
Expand Down

0 comments on commit 29fc2b8

Please sign in to comment.