From 8b47a5b9f49d94192d9a4f077fdd22712fa90df6 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 22 Jun 2019 21:16:29 +0300 Subject: First commit of replay system --- src/render/Hud.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render/Hud.cpp') 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]) { -- cgit v1.2.3