From 1b222958d665542488d3d72587a321be1ac1e793 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 8 Jul 2014 17:12:36 +1200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20override=20custom=20animations?= =?UTF-8?q?=20if=20damaged.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenRA.Mods.RA/Render/RenderBuilding.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Render/RenderBuilding.cs b/OpenRA.Mods.RA/Render/RenderBuilding.cs index e1f6f02998..b0d6efc02c 100755 --- a/OpenRA.Mods.RA/Render/RenderBuilding.cs +++ b/OpenRA.Mods.RA/Render/RenderBuilding.cs @@ -89,7 +89,7 @@ namespace OpenRA.Mods.RA.Render public virtual void DamageStateChanged(Actor self, AttackInfo e) { if (DefaultAnimation.CurrentSequence != null) - DefaultAnimation.ReplaceAnim(NormalizeSequence(self, "idle")); + DefaultAnimation.ReplaceAnim(NormalizeSequence(self, DefaultAnimation.CurrentSequence.Name)); } } }