summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-06-22 20:16:29 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-06-22 20:17:25 +0200
commit8b47a5b9f49d94192d9a4f077fdd22712fa90df6 (patch)
tree27a6dffe3624b3aa89a2aefd286d4a8dfa92d7f2 /src/render
parentFirst commit of replay system (diff)
downloadre3-8b47a5b9f49d94192d9a4f077fdd22712fa90df6.tar
re3-8b47a5b9f49d94192d9a4f077fdd22712fa90df6.tar.gz
re3-8b47a5b9f49d94192d9a4f077fdd22712fa90df6.tar.bz2
re3-8b47a5b9f49d94192d9a4f077fdd22712fa90df6.tar.lz
re3-8b47a5b9f49d94192d9a4f077fdd22712fa90df6.tar.xz
re3-8b47a5b9f49d94192d9a4f077fdd22712fa90df6.tar.zst
re3-8b47a5b9f49d94192d9a4f077fdd22712fa90df6.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Hud.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index 540a1718..ca579004 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -189,7 +189,7 @@ void CHud::Draw()
RwRenderStateSet(rwRENDERSTATESHADEMODE, (void*)rwSHADEMODEFLAT);
RwRenderStateSet(rwRENDERSTATETEXTUREFILTER, (void*)rwFILTERLINEAR);
- if (CReplay::Mode != 1) {
+ if (!CReplay::IsPlayingBack()) {
if (m_Wants_To_Draw_Hud && !TheCamera.m_WideScreenOn) {
bool Mode_RunAround = 0;
bool Mode_FirstPerson = 0;
@@ -1063,7 +1063,7 @@ WRAPPER void CHud::DrawAfterFade(void) { EAXJMP(0x509030); }
#else
void CHud::DrawAfterFade()
{
- if (CTimer::GetIsUserPaused() || CReplay::Mode == 1)
+ if (CTimer::GetIsUserPaused() || CReplay::IsPlayingBack())
return;
if (m_HelpMessage[0]) {