Allow for scripted challenge fails.
This commit is contained in:
parent
ce3eeadeee
commit
5a451bb2e9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue