From 3618f9a8a7bf72107f1ce7403fe4ce4dab529fa3 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 15 Jul 2024 00:23:25 +0200 Subject: [PATCH] Create title scene windows only after initialising title sequence --- src/openrct2/scenes/title/TitleScene.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/openrct2/scenes/title/TitleScene.cpp b/src/openrct2/scenes/title/TitleScene.cpp index 35cf181096..a4365fe87b 100644 --- a/src/openrct2/scenes/title/TitleScene.cpp +++ b/src/openrct2/scenes/title/TitleScene.cpp @@ -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"); }