1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Fix saving without dialog in new scenario

This commit is contained in:
Christian F. Coors
2017-10-15 21:38:46 +02:00
committed by Michael Steenbeek
parent a31add2141
commit e1d24641a4
2 changed files with 2 additions and 0 deletions

View File

@@ -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();

View File

@@ -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;