From 1caabe374b724a14f23e9051dc75835f06d5efd3 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 11 Jul 2020 00:00:42 -0700 Subject: [PATCH] Fix return to editor via crewmate rescue not using shouldreturntoeditor The shouldreturntoeditor variable is supposed to be used because it fixes the warp background not being reset if you exit into a horizontally/vertically warping room with a different background. It also properly resets other variables, which is good, too. --- desktop_version/src/Game.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 21f6a3d3..580282cc 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -1878,8 +1878,7 @@ void Game::updatestate() } else { - gamestate = EDITORMODE; - graphics.backgrounddrawn=false; + shouldreturntoeditor = true; if(!muted && ed.levmusic>0) music.fadeMusicVolumeIn(3000); if(ed.levmusic>0) music.fadeout(); }