Don't execute scripts or message boxes if the player is dead.

This commit is contained in:
Steve 2015-12-19 08:56:52 +00:00
parent 01286b042b
commit bd5f1c3b49
1 changed files with 12 additions and 3 deletions

View File

@ -145,11 +145,17 @@ static void doBattle(void)
doPlayer();
doMessageBox();
if (player != NULL)
{
doMessageBox();
}
if (battle.status == MS_IN_PROGRESS)
{
doScript();
if (player != NULL)
{
doScript();
}
}
else
{
@ -190,7 +196,10 @@ static void draw(void)
drawHud();
drawMessageBox();
if (player != NULL)
{
drawMessageBox();
}
drawMissionInfo();