Allow script to run also with MS_COMPLETE status, to allow for ALL_OBJECTIVES_COMPLETE to work properly.
This commit is contained in:
parent
6f0e8ee397
commit
e98b354ce2
|
@ -165,10 +165,13 @@ static void doBattle(void)
|
||||||
|
|
||||||
doMessageBox();
|
doMessageBox();
|
||||||
|
|
||||||
if (battle.status == MS_IN_PROGRESS)
|
if (battle.status == MS_IN_PROGRESS || battle.status == MS_COMPLETE)
|
||||||
{
|
{
|
||||||
doScript();
|
doScript();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (battle.status == MS_IN_PROGRESS)
|
||||||
|
{
|
||||||
if (battle.stats[STAT_TIME]++ % FPS == 0)
|
if (battle.stats[STAT_TIME]++ % FPS == 0)
|
||||||
{
|
{
|
||||||
runScriptFunction("TIME %d", battle.stats[STAT_TIME] / FPS);
|
runScriptFunction("TIME %d", battle.stats[STAT_TIME] / FPS);
|
||||||
|
|
Loading…
Reference in New Issue