- properly use the correct delay for an ANM's final frame.

This commit is contained in:
Christoph Oelckers 2020-09-18 22:49:51 +02:00
parent 29a10cabcb
commit 005f8feceb
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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[] =
{