1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Create title scene windows only after initialising title sequence

This commit is contained in:
Aaron van Geffen
2024-07-15 00:23:25 +02:00
parent 0890a49e3c
commit 3618f9a8a7

View File

@@ -109,19 +109,10 @@ void TitleScene::Load()
gameStateInitAll(GetGameState(), DEFAULT_MAP_SIZE);
ViewportInitAll();
ContextOpenWindow(WindowClass::MainWindow);
CreateWindows();
GetContext().OpenProgress(STR_LOADING_TITLE_SEQUENCE);
TitleInitialise();
OpenRCT2::Audio::PlayTitleMusic();
if (gOpenRCT2ShowChangelog)
{
gOpenRCT2ShowChangelog = false;
ContextOpenWindow(WindowClass::Changelog);
}
if (_sequencePlayer != nullptr)
{
// Force the title sequence to load / update so we
@@ -131,7 +122,13 @@ void TitleScene::Load()
_sequencePlayer->Update();
}
GetContext().CloseProgress();
CreateWindows();
if (gOpenRCT2ShowChangelog)
{
gOpenRCT2ShowChangelog = false;
ContextOpenWindow(WindowClass::Changelog);
}
LOG_VERBOSE("TitleScene::Load() finished");
}