Make autosaves work again for the first turn,

...and thus be able to go back to the beginning.

This fixes bug #7909 and bug #8117 and was introduced with fixinf bug #6513.
This commit is contained in:
Mark de Wever 2006-12-29 16:17:16 +00:00
parent 174f8415b6
commit fadcbc4db6
2 changed files with 4 additions and 1 deletions

View file

@ -134,6 +134,7 @@ Version 1.3-svn:
* add two new debug command set_var and show_var to check variables within
the game easily
* better handling of SDL_ListModes return code (no user impact)
* first turn of a game is saved again (fixes bug #7909 and bug #8117)
Version 1.2:
* campaigns:

View file

@ -185,7 +185,9 @@ LEVEL_RESULT playsingle_controller::play_scenario(const std::vector<config*>& st
}
}
bool save = false;
//avoid autosaving after loading but still allow the
//first turn to have an autosave.
bool save = !loading_game_;
for(; ; first_player_ = 1) {
play_turn(save);
save = true;