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

Refactor game_init_all into GameState::InitAll.

This commit is contained in:
Aaron van Geffen
2018-05-27 17:11:54 +02:00
parent 67f4f9e617
commit dcff6895b5
11 changed files with 48 additions and 54 deletions

View File

@@ -130,7 +130,7 @@ void TitleScreen::Load()
network_close();
audio_stop_all_music_and_sounds();
game_init_all(150);
GetContext()->GetGameState()->InitAll(150);
viewport_init_all();
context_open_window(WC_MAIN_WINDOW);
CreateWindows();
@@ -276,7 +276,7 @@ bool TitleScreen::TryLoadSequence(bool loadPreview)
_loadedTitleSequenceId = SIZE_MAX;
if (!loadPreview)
{
game_init_all(150);
GetContext()->GetGameState()->InitAll(150);
}
return false;
}