From 8267f327e36fcffd06514700bc71baec8d70147c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 3 Jan 2022 20:53:21 +0100 Subject: [PATCH] - Exhumed: hide all screen overlays when Ramses is talking. --- source/games/exhumed/src/gameloop.cpp | 21 +++++++++++++-------- source/games/exhumed/src/status.cpp | 1 - 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/source/games/exhumed/src/gameloop.cpp b/source/games/exhumed/src/gameloop.cpp index 3a4cfbf07..107227377 100644 --- a/source/games/exhumed/src/gameloop.cpp +++ b/source/games/exhumed/src/gameloop.cpp @@ -75,16 +75,21 @@ void GameInterface::Render() double const smoothratio = calc_smoothratio(); - DrawView(smoothratio); - DrawStatusBar(); - DrawCrosshair(kCrosshairTile, PlayerList[nLocalPlayer].nHealth >> 3, -PlayerList[nLocalPlayer].angle.look_anghalf(smoothratio), 0, 1); - if (paused && !M_Active()) + + DrawView(smoothratio); + if (nFreeze != 2) // Hide when Ramses is talking. { - auto tex = GStrings("TXTB_PAUSED"); - auto font = PickSmallFont(tex); - int nStringWidth = font->StringWidth(tex); - DrawText(twod, font, CR_UNTRANSLATED, 160 - nStringWidth / 2, 100, tex, DTA_FullscreenScale, FSMode_Fit320x200, TAG_DONE); + DrawStatusBar(); + DrawCrosshair(kCrosshairTile, PlayerList[nLocalPlayer].nHealth >> 3, -PlayerList[nLocalPlayer].angle.look_anghalf(smoothratio), 0, 1); + + if (paused && !M_Active()) + { + auto tex = GStrings("TXTB_PAUSED"); + auto font = PickSmallFont(tex); + int nStringWidth = font->StringWidth(tex); + DrawText(twod, font, CR_UNTRANSLATED, 160 - nStringWidth / 2, 100, tex, DTA_FullscreenScale, FSMode_Fit320x200, TAG_DONE); + } } drawtime.Unclock(); diff --git a/source/games/exhumed/src/status.cpp b/source/games/exhumed/src/status.cpp index cc081c64b..afb98af0e 100644 --- a/source/games/exhumed/src/status.cpp +++ b/source/games/exhumed/src/status.cpp @@ -144,7 +144,6 @@ void StatusMessage(int messageTime, const char* fmt, ...) void DrawStatusBar() { - if (nFreeze == 2) return; // Hide when Ramses is talking. if (hud_size <= Hud_Stbar) { UpdateFrame();