From 6e5181fe4ddb4ed25bb81a77e33f8158f08e9952 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Tue, 15 Dec 2015 20:57:55 +0100 Subject: [PATCH] Fix the idle animation of the host in WithRepairAnimation.cs using the damage state of the repaired actor. --- OpenRA.Mods.Common/Traits/Render/WithRepairAnimation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Render/WithRepairAnimation.cs b/OpenRA.Mods.Common/Traits/Render/WithRepairAnimation.cs index ca9027c678..c5e9342f5a 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithRepairAnimation.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithRepairAnimation.cs @@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Traits { var spriteBody = host.TraitOrDefault(); if (spriteBody != null && !(info.PauseOnLowPower && self.IsDisabled())) - spriteBody.PlayCustomAnimation(host, info.Sequence, () => spriteBody.CancelCustomAnimation(self)); + spriteBody.PlayCustomAnimation(host, info.Sequence, () => spriteBody.CancelCustomAnimation(host)); } } } \ No newline at end of file