Don't execute scripts or message boxes if the player is dead.
This commit is contained in:
parent
01286b042b
commit
bd5f1c3b49
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue