mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 01:10:51 +00:00
PCExhumed: Fix inconsistent HUD health and magic animation speed.
This commit is contained in:
parent
08e69b1d2e
commit
d044b2a605
1 changed files with 10 additions and 11 deletions
|
@ -495,6 +495,16 @@ void MoveStatus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nHealthFrame++;
|
||||||
|
if (nHealthFrame >= nHealthFrames) {
|
||||||
|
nHealthFrame = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
nMagicFrame++;
|
||||||
|
if (nMagicFrame >= nMagicFrames) {
|
||||||
|
nMagicFrame = 0;
|
||||||
|
}
|
||||||
|
|
||||||
MoveStatusAnims();
|
MoveStatusAnims();
|
||||||
|
|
||||||
if (nCounter == nCounterDest)
|
if (nCounter == nCounterDest)
|
||||||
|
@ -683,17 +693,6 @@ void DrawStatus()
|
||||||
seq_DrawStatusSequence(nStatusSeqOffset + 127, 0, 0);
|
seq_DrawStatusSequence(nStatusSeqOffset + 127, 0, 0);
|
||||||
seq_DrawStatusSequence(nStatusSeqOffset + 1, nHealthFrame, nHealthLevel);
|
seq_DrawStatusSequence(nStatusSeqOffset + 1, nHealthFrame, nHealthLevel);
|
||||||
seq_DrawStatusSequence(nStatusSeqOffset + 129, nMagicFrame, nMagicLevel);
|
seq_DrawStatusSequence(nStatusSeqOffset + 129, nMagicFrame, nMagicLevel);
|
||||||
|
|
||||||
nHealthFrame++;
|
|
||||||
if (nHealthFrame >= nHealthFrames) {
|
|
||||||
nHealthFrame = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
nMagicFrame++;
|
|
||||||
if (nMagicFrame >= nMagicFrames) {
|
|
||||||
nMagicFrame = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
seq_DrawStatusSequence(nStatusSeqOffset + 125, 0, 0); // draw ankh on health pool
|
seq_DrawStatusSequence(nStatusSeqOffset + 125, 0, 0); // draw ankh on health pool
|
||||||
seq_DrawStatusSequence(nStatusSeqOffset + 130, 0, 0); // draw health pool frame (top)
|
seq_DrawStatusSequence(nStatusSeqOffset + 130, 0, 0); // draw health pool frame (top)
|
||||||
seq_DrawStatusSequence(nStatusSeqOffset + 131, 0, 0); // magic pool frame (bottom)
|
seq_DrawStatusSequence(nStatusSeqOffset + 131, 0, 0); // magic pool frame (bottom)
|
||||||
|
|
Loading…
Reference in a new issue