Skip to content

Commit

Permalink
- Exhumed: fix animation stopping for inventory torch item.
Browse files Browse the repository at this point in the history
I have no idea how the old code could ever work...
  • Loading branch information
coelckers committed May 16, 2021
1 parent 395de23 commit 24ce5d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions source/core/savegamehelp.cpp
Expand Up @@ -160,6 +160,7 @@ bool ReadSavegame(const char* name)
arc.Close();
info->Unlock();
delete savereader;
ResetStatusBar();
return true;
}
return false;
Expand Down
4 changes: 2 additions & 2 deletions wadsrc/static/zscript/games/exhumed/ui/sbar.zs
Expand Up @@ -487,7 +487,7 @@ class ExhumedStatusBar : RazeStatusBar

int newMagicLevel = (1000 - pp.nMagic) / magicperline;
newMagicLevel = clamp(newMagicLevel, 0, nMeterRange - 1);
if (newMagicLevel != nMagicLevel) SetItemSeq(pp);
if (newMagicLevel != nMagicLevel || nItemFrames == 0) SetItemSeq(pp);
nMagicLevel = newMagicLevel;
}

Expand Down Expand Up @@ -593,7 +593,7 @@ class ExhumedStatusBar : RazeStatusBar

if (nItemFrame >= nItemFrames)
{
if (nItemSeq == 67) {
if (nItemSeq == 76) {
SetItemSeq(pp);
}
else
Expand Down

0 comments on commit 24ce5d6

Please sign in to comment.