Skip to content

Commit

Permalink
don't generate a savegame snapshot unless needed
Browse files Browse the repository at this point in the history
fixes #3150

(cherry-picked from commit 7eec132)
  • Loading branch information
gfgtdf authored and Vultraz committed Oct 7, 2018
1 parent f68aec1 commit b249e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playsingle_controller.cpp
Expand Up @@ -409,7 +409,7 @@ void playsingle_controller::before_human_turn()
return;
}

if(init_side_done_now_) {
if(init_side_done_now_ && !game_config::disable_autosave && preferences::autosavemax() > 0) {
scoped_savegame_snapshot snapshot(*this);
savegame::autosave_savegame save(saved_game_, preferences::save_compression_format());
save.autosave(game_config::disable_autosave, preferences::autosavemax(), preferences::INFINITE_AUTO_SAVES);
Expand Down

0 comments on commit b249e30

Please sign in to comment.