mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 01:04:50 +01:00
Remove gS6Info
This commit is contained in:
@@ -1061,7 +1061,7 @@ static void window_loadsave_select(rct_window* w, const char* path)
|
||||
save_path(&gConfigGeneral.last_save_scenario_directory, pathBuffer);
|
||||
int32_t parkFlagsBackup = gParkFlags;
|
||||
gParkFlags &= ~PARK_FLAGS_SPRITES_INITIALISED;
|
||||
gS6Info.editor_step = EditorStep::Invalid;
|
||||
gEditorStep = EditorStep::Invalid;
|
||||
safe_strcpy(gScenarioFileName, pathBuffer, sizeof(gScenarioFileName));
|
||||
int32_t success = scenario_save(pathBuffer, gConfigGeneral.save_plugin_data ? 3 : 2);
|
||||
gParkFlags = parkFlagsBackup;
|
||||
@@ -1075,7 +1075,7 @@ static void window_loadsave_select(rct_window* w, const char* path)
|
||||
else
|
||||
{
|
||||
context_show_error(STR_FILE_DIALOG_TITLE_SAVE_SCENARIO, STR_SCENARIO_SAVE_FAILED, {});
|
||||
gS6Info.editor_step = EditorStep::ObjectiveSelection;
|
||||
gEditorStep = EditorStep::ObjectiveSelection;
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_FAIL, pathBuffer);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user