From fdfd875d8aa7fd7ae2ae84ea19fd8b211d919e93 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 8 Mar 2018 07:53:26 +0000 Subject: [PATCH] When player manually quits, don't show mission complete screen. --- src/defs.h | 3 ++- src/hub/postMission.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/defs.h b/src/defs.h index d9b0646..da2fa2d 100644 --- a/src/defs.h +++ b/src/defs.h @@ -241,7 +241,8 @@ enum WS_OBSERVING, WS_COMPLETE, WS_MISSION_COMPLETE, - WS_GAME_OVER + WS_GAME_OVER, + WS_QUIT }; enum diff --git a/src/hub/postMission.c b/src/hub/postMission.c index 99c1652..64fa249 100644 --- a/src/hub/postMission.c +++ b/src/hub/postMission.c @@ -41,7 +41,7 @@ void initPostMission(void) updateMissionStatus(); - if (status == MS_COMPLETE || (!world.isReturnVisit && status != MS_INCOMPLETE)) + if (world.state != WS_QUIT) { app.restrictTrophyAlert = 0;