- Exhumed: fix animation stopping for inventory torch item.

I have no idea how the old code could ever work...
This commit is contained in:
Christoph Oelckers 2021-05-16 20:25:56 +02:00
parent 395de23b21
commit 24ce5d6130
2 changed files with 3 additions and 2 deletions

View file

@ -160,6 +160,7 @@ bool ReadSavegame(const char* name)
arc.Close(); arc.Close();
info->Unlock(); info->Unlock();
delete savereader; delete savereader;
ResetStatusBar();
return true; return true;
} }
return false; return false;

View file

@ -487,7 +487,7 @@ class ExhumedStatusBar : RazeStatusBar
int newMagicLevel = (1000 - pp.nMagic) / magicperline; int newMagicLevel = (1000 - pp.nMagic) / magicperline;
newMagicLevel = clamp(newMagicLevel, 0, nMeterRange - 1); newMagicLevel = clamp(newMagicLevel, 0, nMeterRange - 1);
if (newMagicLevel != nMagicLevel) SetItemSeq(pp); if (newMagicLevel != nMagicLevel || nItemFrames == 0) SetItemSeq(pp);
nMagicLevel = newMagicLevel; nMagicLevel = newMagicLevel;
} }
@ -593,7 +593,7 @@ class ExhumedStatusBar : RazeStatusBar
if (nItemFrame >= nItemFrames) if (nItemFrame >= nItemFrames)
{ {
if (nItemSeq == 67) { if (nItemSeq == 76) {
SetItemSeq(pp); SetItemSeq(pp);
} }
else else