From e98b354ce2dbf0bb3db3ca421d3f8f0814c9d916 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 19 May 2016 09:30:15 +0100 Subject: [PATCH] Allow script to run also with MS_COMPLETE status, to allow for ALL_OBJECTIVES_COMPLETE to work properly. --- src/battle/battle.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/battle/battle.c b/src/battle/battle.c index f98cc67..ffb8ecb 100644 --- a/src/battle/battle.c +++ b/src/battle/battle.c @@ -164,11 +164,14 @@ static void doBattle(void) doLocations(); doMessageBox(); + + if (battle.status == MS_IN_PROGRESS || battle.status == MS_COMPLETE) + { + doScript(); + } if (battle.status == MS_IN_PROGRESS) { - doScript(); - if (battle.stats[STAT_TIME]++ % FPS == 0) { runScriptFunction("TIME %d", battle.stats[STAT_TIME] / FPS);