From d044b2a605e5f407342ad43f9b3711846bd72c55 Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Thu, 23 Jan 2020 20:00:40 +0000 Subject: [PATCH] PCExhumed: Fix inconsistent HUD health and magic animation speed. --- source/exhumed/src/status.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/source/exhumed/src/status.cpp b/source/exhumed/src/status.cpp index 97a39fd32..b572fb575 100644 --- a/source/exhumed/src/status.cpp +++ b/source/exhumed/src/status.cpp @@ -495,6 +495,16 @@ void MoveStatus() } } + nHealthFrame++; + if (nHealthFrame >= nHealthFrames) { + nHealthFrame = 0; + } + + nMagicFrame++; + if (nMagicFrame >= nMagicFrames) { + nMagicFrame = 0; + } + MoveStatusAnims(); if (nCounter == nCounterDest) @@ -683,17 +693,6 @@ void DrawStatus() seq_DrawStatusSequence(nStatusSeqOffset + 127, 0, 0); seq_DrawStatusSequence(nStatusSeqOffset + 1, nHealthFrame, nHealthLevel); 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 + 130, 0, 0); // draw health pool frame (top) seq_DrawStatusSequence(nStatusSeqOffset + 131, 0, 0); // magic pool frame (bottom)