forked from rosebudai/OpenRCT2-Web
Create title scene windows only after initialising title sequence
This commit is contained in:
1 parent
0890a49e3c
commit
3618f9a8a7
1 file changed
+7
-10
@@ -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