Hide the starport animation from highlights and when not playing.

This commit is contained in:
Paul Chote
2017-02-25 08:23:21 +00:00
parent e0ca38b878
commit f221dd721a

View File

@@ -56,9 +56,12 @@ namespace OpenRA.Mods.D2k.Traits.Render
var overlay = new Animation(self.World, rs.GetImage(self));
overlay.Play(info.Sequence);
// These translucent overlays should not be included in highlight flashes
overlay.IsDecoration = true;
anim = new AnimationWithOffset(overlay,
() => body.LocalToWorld(info.Offset.Rotate(body.QuantizeOrientation(self, self.Orientation))),
() => !buildComplete);
() => !buildComplete || !delivering);
rs.Add(anim, info.Palette, info.IsPlayerPalette);
}