Allow script to run also with MS_COMPLETE status, to allow for ALL_OBJECTIVES_COMPLETE to work properly.

This commit is contained in:
Steve 2016-05-19 09:30:15 +01:00
parent 6f0e8ee397
commit e98b354ce2
1 changed files with 5 additions and 2 deletions

View File

@ -165,10 +165,13 @@ static void doBattle(void)
doMessageBox();
if (battle.status == MS_IN_PROGRESS)
if (battle.status == MS_IN_PROGRESS || battle.status == MS_COMPLETE)
{
doScript();
}
if (battle.status == MS_IN_PROGRESS)
{
if (battle.stats[STAT_TIME]++ % FPS == 0)
{
runScriptFunction("TIME %d", battle.stats[STAT_TIME] / FPS);