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.
This commit is contained in:
Misa 2021-09-10 15:42:25 -07:00
parent 91b63e7f88
commit 3185d88776
1 changed files with 0 additions and 4 deletions

View File

@ -1919,16 +1919,12 @@ void Game::updatestate(void)
if(map.custommodeforreal)
{
graphics.fademode = 2;
if(!muted && cl.levmusic>0) music.fadeMusicVolumeIn(3000);
if(cl.levmusic>0) music.fadeout();
state=1014;
}
#ifndef NO_EDITOR
else
{
returntoeditor();
if(!muted && cl.levmusic>0) music.fadeMusicVolumeIn(3000);
if(cl.levmusic>0) music.fadeout();
}
#endif
}