From ba81b19c311bd73a580eaca48c573c8efcb14d36 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 26 May 2016 18:17:57 +0100 Subject: [PATCH] Don't save the game in the middle of the battle. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index c3ce317..368b3f9 100644 --- a/src/main.c +++ b/src/main.c @@ -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;