Allow for scripted challenge fails.

This commit is contained in:
Steve 2016-05-07 10:44:56 +01:00
parent ce3eeadeee
commit 5a451bb2e9
1 changed files with 5 additions and 0 deletions

View File

@ -255,6 +255,11 @@ static void executeNextLine(ScriptRunner *runner)
addHudMessage(colors.red, _("Mission Failed!")); addHudMessage(colors.red, _("Mission Failed!"));
failMission(); failMission();
} }
else if (strcmp(command, "FAIL_CHALLENGE") == 0)
{
addHudMessage(colors.red, _("Challenge Failed!"));
failMission();
}
else if (strcmp(command, "END_CHALLENGE") == 0) else if (strcmp(command, "END_CHALLENGE") == 0)
{ {
game.currentMission->challengeData.scriptedEnd = 1; game.currentMission->challengeData.scriptedEnd = 1;