From fa0264a73c1fe37f305a7c8041f51a2f6476d45c Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 10 Mar 2015 20:14:20 +0000 Subject: [PATCH] Fix WithDeathAnimation dependency. --- OpenRA.Mods.Common/Traits/Render/WithDeathAnimation.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Render/WithDeathAnimation.cs b/OpenRA.Mods.Common/Traits/Render/WithDeathAnimation.cs index 4256029728..90388b286a 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithDeathAnimation.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithDeathAnimation.cs @@ -14,7 +14,7 @@ using OpenRA.Traits; namespace OpenRA.Mods.Common.Traits { [Desc("This actor has a death animation.")] - public class WithDeathAnimationInfo : ITraitInfo, Requires + public class WithDeathAnimationInfo : ITraitInfo, Requires { [Desc("Sequence to play when this actor is killed by a warhead.")] public readonly string DeathSequence = "die"; @@ -35,12 +35,12 @@ namespace OpenRA.Mods.Common.Traits public class WithDeathAnimation : INotifyKilled { public readonly WithDeathAnimationInfo Info; - readonly RenderSimple renderSimple; + readonly RenderSprites rs; public WithDeathAnimation(Actor self, WithDeathAnimationInfo info) { Info = info; - renderSimple = self.Trait(); + rs = self.Trait(); } public void Killed(Actor self, AttackInfo e) @@ -66,7 +66,7 @@ namespace OpenRA.Mods.Common.Traits self.World.AddFrameEndTask(w => { if (!self.Destroyed) - w.Add(new Corpse(w, self.CenterPosition, renderSimple.GetImage(self), sequence, palette)); + w.Add(new Corpse(w, self.CenterPosition, rs.GetImage(self), sequence, palette)); }); } }