mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +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();
|
arc.Close();
|
||||||
info->Unlock();
|
info->Unlock();
|
||||||
delete savereader;
|
delete savereader;
|
||||||
|
ResetStatusBar();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue