- fixed some issues with prematurely terminated sounds.

This commit is contained in:
Christoph Oelckers 2020-10-10 12:57:43 +02:00
parent 3cfba26bec
commit 294a806793
4 changed files with 4 additions and 5 deletions

View file

@ -209,7 +209,7 @@ static void GameTicker()
case ga_mainmenunostopsound:
gi->FreeLevelData();
gamestate = GS_MENUSCREEN;
M_StartControlPanel(false);
M_StartControlPanel(ga == ga_mainmenu);
M_SetMenu(NAME_Mainmenu);
break;

View file

@ -43,7 +43,6 @@ void GameInterface::MenuOpened()
{
GrabPalette();
menuDelegate->FloatVar(NAME_zoomsize) = 0;
StopAllSounds();
StopLocalSound();
}

View file

@ -138,7 +138,7 @@ static void Intermission(MapRecord *from_map, MapRecord *to_map)
{
TArray<JobDesc> jobs;
StopAllSounds();
if (from_map) StopAllSounds();
bCamera = false;
automapMode = am_off;

View file

@ -133,8 +133,8 @@ void GameInterface::Startup()
}
else
{
if (!userConfig.nologo) fi.ShowLogo([](bool) { gameaction = ga_mainmenu; });
else gameaction = ga_mainmenu;
if (!userConfig.nologo) fi.ShowLogo([](bool) { gameaction = ga_mainmenunostopsound; });
else gameaction = ga_mainmenunostopsound;
}
}