From b8403ffe1e2abd44a5ce9533cabc66e8ea22719c Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 22 Jun 2020 14:40:12 -0700 Subject: [PATCH] Use game.inspecial() for special mode checks in maprender() This basically adds an extra '|| game.inintermission' because it seems like the original code forgot about that conditional. You can't save in level replays, so there's no need to say "You will lose any unsaved progress." in intermission replays. --- desktop_version/src/Render.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 2911c9c2..e692e3f6 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -2215,7 +2215,7 @@ void maprender() if (graphics.flipmode) { - if (game.intimetrial || game.insecretlab || game.nodeathmode) + if (game.inspecial()) { graphics.Print(0, 135, "Return to main menu?", 196, 196, 255 - help.glow, true); } @@ -2231,7 +2231,7 @@ void maprender() else { - if (game.intimetrial || game.insecretlab || game.nodeathmode) + if (game.inspecial()) { graphics.Print(0, 80, "Return to main menu?", 196, 196, 255 - help.glow, true); } @@ -2251,7 +2251,7 @@ void maprender() if (graphics.flipmode) { - if (game.intimetrial || game.insecretlab || game.nodeathmode) + if (game.inspecial()) { graphics.Print(0, 135, "Return to main menu?", 196, 196, 255 - help.glow, true); } @@ -2266,7 +2266,7 @@ void maprender() } else { - if (game.intimetrial || game.insecretlab || game.nodeathmode) + if (game.inspecial()) { graphics.Print(0, 80, "Return to main menu?", 196, 196, 255 - help.glow, true); }