From 693d563f271b4641f9a443f206f3f92077c6f52d Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 21 Nov 2015 17:36:42 +0000 Subject: [PATCH] Make player immortal upon mission completion / failure. --- src/galaxy/mission.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/galaxy/mission.c b/src/galaxy/mission.c index db8b3f1..a781007 100644 --- a/src/galaxy/mission.c +++ b/src/galaxy/mission.c @@ -113,6 +113,8 @@ void completeMission(void) game.stats[STAT_MISSIONS_COMPLETED]++; retreatEnemies(); + + player->flags |= EF_IMMORTAL; } } @@ -125,6 +127,8 @@ void failMission(void) selectWidget("retry", "battleLost"); failIncompleteObjectives(); + + player->flags |= EF_IMMORTAL; } }