Allow script to immediately terminate mission.
This commit is contained in:
parent
6d8f9f575e
commit
b723d42dd4
|
@ -247,6 +247,12 @@ static void executeNextLine(ScriptRunner *runner)
|
||||||
completeAllObjectives();
|
completeAllObjectives();
|
||||||
completeMission();
|
completeMission();
|
||||||
}
|
}
|
||||||
|
else if (strcmp(command, "END_MISSION") == 0)
|
||||||
|
{
|
||||||
|
battle.unwinnable = 1;
|
||||||
|
completeMission();
|
||||||
|
battle.missionFinishedTimer = -FPS * 999;
|
||||||
|
}
|
||||||
else if (strcmp(command, "FAIL_MISSION") == 0)
|
else if (strcmp(command, "FAIL_MISSION") == 0)
|
||||||
{
|
{
|
||||||
addHudMessage(colors.red, _("Mission Failed!"));
|
addHudMessage(colors.red, _("Mission Failed!"));
|
||||||
|
|
Loading…
Reference in New Issue