From 46b575ee1806288aa9b71d1abb0f1eae15329e14 Mon Sep 17 00:00:00 2001 From: wolfreak99 Date: Tue, 13 Jun 2017 02:20:15 -0400 Subject: [PATCH] Remove unnecessary gFirstTimeSaving call, handle gFirstTimeSaving in game_load_save --- src/openrct2/game.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openrct2/game.c b/src/openrct2/game.c index 4851e2d7b8..0b7754c4d2 100644 --- a/src/openrct2/game.c +++ b/src/openrct2/game.c @@ -1095,6 +1095,8 @@ bool game_load_save(const utf8 *path) bool result = false; if (extension_type == FILE_EXTENSION_SV6) { result = game_load_sv6_path(path); + if (result) + gFirstTimeSaving = false; } else if (extension_type == FILE_EXTENSION_SV4) { result = rct1_load_saved_game(path); if (result) @@ -1373,8 +1375,8 @@ bool game_load_save_or_scenario(const utf8 * path) static void game_load_or_quit_no_save_prompt_callback(sint32 result, const utf8 * path) { - if (result == MODAL_RESULT_OK && game_load_save_or_scenario(path)) { - gFirstTimeSaving = false; + if (result == MODAL_RESULT_OK) { + game_load_save_or_scenario(path); } }