1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

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.
This commit is contained in:
Misa 2020-07-11 00:00:42 -07:00 committed by Ethan Lee
parent 2506127a17
commit 1caabe374b

View File

@ -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();
}