mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
- Exhumed: fix animation stopping for inventory torch item.
I have no idea how the old code could ever work...
This commit is contained in:
parent
395de23b21
commit
24ce5d6130
2 changed files with 3 additions and 2 deletions
|
@ -160,6 +160,7 @@ bool ReadSavegame(const char* name)
|
|||
arc.Close();
|
||||
info->Unlock();
|
||||
delete savereader;
|
||||
ResetStatusBar();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -593,7 +593,7 @@ class ExhumedStatusBar : RazeStatusBar
|
|||
|
||||
if (nItemFrame >= nItemFrames)
|
||||
{
|
||||
if (nItemSeq == 67) {
|
||||
if (nItemSeq == 76) {
|
||||
SetItemSeq(pp);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue