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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user