Fix saving without dialog in new scenario

This commit is contained in:
Christian F. Coors authored and Michael Steenbeek committed 2017-10-16 08:07:10 +02:00
1 parent a31add2141
commit e1d24641a4
2 files changed
+2

No files matched your search

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