From 1f360620cf3c548bb960195163ec80d030b76189 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 13 Jun 2020 20:08:39 -0700 Subject: [PATCH] Add inspecial() checks to savetele() and savequick() This prevents the game from being saved if you manage to trigger a savetele() during a "special" gamemode (like if you use the Gravitron out-of-bounds glitch when replaying Intermission 2, then go to Game Complete that way). --- desktop_version/src/Game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 925bc9fa..786c8438 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -5916,7 +5916,7 @@ void Game::savetele() { //TODO make this code a bit cleaner. - if (map.custommode) + if (map.custommode || inspecial()) { //Don't trash save data! return; @@ -6112,7 +6112,7 @@ void Game::savetele() void Game::savequick() { - if (map.custommode) + if (map.custommode || inspecial()) { //Don't trash save data! return;