mirror of https://github.com/OpenRCT2/OpenRCT2.git
Revert "Fix #2287: Sound not disabled when starting without focus"
This reverts commit feaafa4451
.
This commit is contained in:
parent
feaafa4451
commit
efffb5af21
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue