From 94c3090528dd37858dd67a65e6e19114454637c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Tue, 13 Aug 2013 23:51:31 +0200 Subject: [PATCH] require body orientation for idle overlays and don't wait for BuildingComplete to generalize for units --- OpenRA.Mods.RA/Render/WithIdleOverlay.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Render/WithIdleOverlay.cs b/OpenRA.Mods.RA/Render/WithIdleOverlay.cs index f9bc619df4..f93c14df91 100644 --- a/OpenRA.Mods.RA/Render/WithIdleOverlay.cs +++ b/OpenRA.Mods.RA/Render/WithIdleOverlay.cs @@ -11,10 +11,11 @@ using OpenRA.FileFormats; using OpenRA.Graphics; using OpenRA.Traits; +using OpenRA.Mods.RA.Buildings; namespace OpenRA.Mods.RA.Render { - public class WithIdleOverlayInfo : ITraitInfo, Requires + public class WithIdleOverlayInfo : ITraitInfo, Requires, Requires { [Desc("Sequence name to use")] public readonly string Sequence = "idle-overlay"; @@ -35,6 +36,7 @@ namespace OpenRA.Mods.RA.Render var rs = self.Trait(); var body = self.Trait(); + buildComplete = !self.HasTrait(); // always render instantly for units overlay = new Animation(rs.GetImage(self)); overlay.PlayRepeating(info.Sequence); rs.anims.Add("idle_overlay_{0}".F(info.Sequence),