From 3d090792d281b6d4825b28a708d77e2d5fda0b97 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 10 Sep 2021 15:42:25 -0700 Subject: [PATCH] Don't touch music when completing custom level For some reason, when completing a custom level and fading to the menu, the game attempts to fade the music in and also fade the music out at the same time. This results in nothing happening at all, and in 2.2 and previous, results in audio fading out from max volume while the game is frozen on a black screen after the fadeout. To avoid any potential badness, just remove these. --- desktop_version/src/Game.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index a0db0893..eb1743fc 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -1942,15 +1942,11 @@ void Game::updatestate(void) if(map.custommodeforreal) { graphics.fademode = 2; - if(!muted && ed.levmusic>0) music.fadeMusicVolumeIn(3000); - if(ed.levmusic>0) music.fadeout(); state=1014; } else { returntoeditor(); - if(!muted && ed.levmusic>0) music.fadeMusicVolumeIn(3000); - if(ed.levmusic>0) music.fadeout(); } } else