Revert "Fix #2287: Sound not disabled when starting without focus"

This reverts commit feaafa4451.
This commit is contained in:
Daniel Lightbourn 2024-04-23 18:43:25 -04:00
parent feaafa4451
commit efffb5af21
2 changed files with 1 additions and 18 deletions

View File

@ -1100,14 +1100,6 @@ namespace OpenRCT2
_uiContext->ProcessMessages();
// Start the title music now that focus events have been processed.
if (static bool firstTime = true; firstTime)
{
firstTime = false;
OpenRCT2::Audio::PlayTitleMusic();
}
if (_ticksAccumulator < kGameUpdateTimeMS)
{
const auto sleepTimeSec = (kGameUpdateTimeMS - _ticksAccumulator);

View File

@ -133,16 +133,7 @@ void TitleScreen::Load()
ContextOpenWindow(WindowClass::MainWindow);
CreateWindows();
TitleInitialise();
// Defer the title music until window messages can be processed.
if (static bool firstTime = true; firstTime)
{
firstTime = false;
}
else
{
OpenRCT2::Audio::PlayTitleMusic();
}
OpenRCT2::Audio::PlayTitleMusic();
if (gOpenRCT2ShowChangelog)
{