From 3f81df9c52a29fbd67ed6a32d821cb7d4b605e75 Mon Sep 17 00:00:00 2001 From: Andre Mohren Date: Thu, 2 Aug 2018 23:52:02 +0200 Subject: [PATCH] Fixed backwards animation playback. --- OpenRA.Game/Graphics/Animation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Graphics/Animation.cs b/OpenRA.Game/Graphics/Animation.cs index f291df973b..86117fc194 100644 --- a/OpenRA.Game/Graphics/Animation.cs +++ b/OpenRA.Game/Graphics/Animation.cs @@ -50,7 +50,7 @@ namespace OpenRA.Graphics this.paused = paused; } - public int CurrentFrame { get { return backwards ? CurrentSequence.Start + CurrentSequence.Length - frame - 1 : frame; } } + public int CurrentFrame { get { return backwards ? CurrentSequence.Length - frame - 1 : frame; } } public Sprite Image { get { return CurrentSequence.GetSprite(CurrentFrame, facingFunc()); } } public IRenderable[] Render(WPos pos, WVec offset, int zOffset, PaletteReference palette, float scale)