1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +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

@@ -62,7 +62,7 @@ namespace Editor
audio_stop_all_music_and_sounds();
object_manager_unload_all_objects();
object_list_load();
game_init_all(150);
OpenRCT2::GetContext()->GetGameState()->InitAll(150);
gScreenFlags = SCREEN_FLAGS_SCENARIO_EDITOR;
gS6Info.editor_step = EDITOR_STEP_OBJECT_SELECTION;
gParkFlags |= PARK_FLAGS_SHOW_REAL_GUEST_NAMES;
@@ -141,7 +141,7 @@ namespace Editor
object_manager_unload_all_objects();
object_list_load();
game_init_all(150);
OpenRCT2::GetContext()->GetGameState()->InitAll(150);
SetAllLandOwned();
gS6Info.editor_step = EDITOR_STEP_OBJECT_SELECTION;
viewport_init_all();
@@ -162,7 +162,7 @@ namespace Editor
object_manager_unload_all_objects();
object_list_load();
game_init_all(150);
OpenRCT2::GetContext()->GetGameState()->InitAll(150);
SetAllLandOwned();
gS6Info.editor_step = EDITOR_STEP_OBJECT_SELECTION;
viewport_init_all();