Don't save the game in the middle of the battle.

This commit is contained in:
Steve 2016-05-26 18:17:57 +01:00
parent 4cd0c36b73
commit ba81b19c31
1 changed files with 2 additions and 2 deletions

View File

@ -163,8 +163,8 @@ int main(int argc, char *argv[])
expireTextTimer = SDL_GetTicks() + (1000 * 10);
}
/* trophy unlocks might cause the game to save several times in one frame */
if (app.saveGame)
/* don't save more than once per request, and not in the middle of battle */
if (app.saveGame && battle.status != MS_IN_PROGRESS)
{
saveGame();
app.saveGame = 0;