From 005f8feceb75d084216768b845c6b360db611625 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 18 Sep 2020 22:49:51 +0200 Subject: [PATCH] - properly use the correct delay for an ANM's final frame. --- source/core/screenjob.cpp | 2 +- source/sw/src/2d.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/screenjob.cpp b/source/core/screenjob.cpp index 1ed0fc136..b7fa5e5cd 100644 --- a/source/core/screenjob.cpp +++ b/source/core/screenjob.cpp @@ -160,7 +160,7 @@ public: if (frameTicks) { if (curframe == 1) delay = frameTicks[0]; - else if (curframe < numframes - 1) delay = frameTicks[1]; + else if (curframe < numframes - 2) delay = frameTicks[1]; else delay = frameTicks[2]; } nextframetime += delay; diff --git a/source/sw/src/2d.cpp b/source/sw/src/2d.cpp index 9b1d69aba..cfe9a88b2 100644 --- a/source/sw/src/2d.cpp +++ b/source/sw/src/2d.cpp @@ -111,7 +111,7 @@ DScreenJob* GetFinishAnim(int num) { 64, DIGI_SHAREND_UGLY2 }, { -1, -1 } }; - static const int serpzillaframetimes[] = { 16, 16, 136 }; + static const int serpzillaframetimes[] = { 16, 16, 140 }; static const AnimSound sumosound[] = {