mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix saving without dialog in new scenario
This commit is contained in:
parent
a31add2141
commit
e1d24641a4
|
@ -765,6 +765,7 @@ static void window_loadsave_select(rct_window *w, const char *path)
|
|||
save_path(&gConfigGeneral.last_save_game_directory, pathBuffer);
|
||||
safe_strcpy(gScenarioSavePath, pathBuffer, MAX_PATH);
|
||||
safe_strcpy(gCurrentLoadedPath, pathBuffer, MAX_PATH);
|
||||
gFirstTimeSaving = true;
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_OK, pathBuffer);
|
||||
window_close_by_class(WC_LOADSAVE);
|
||||
gfx_invalidate_screen();
|
||||
|
|
|
@ -292,6 +292,7 @@ static void window_scenarioselect_scrollmousedown(rct_window *w, sint32 scrollIn
|
|||
y -= 24;
|
||||
if (y < 0 && !listItem->scenario.is_locked) {
|
||||
audio_play_sound(SOUND_CLICK_1, 0, w->x + (w->width / 2));
|
||||
gFirstTimeSaving = true;
|
||||
_callback(listItem->scenario.scenario->path);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue