From 5f7367403df7b5f5e14135efac80b26f42addc2b Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 25 Feb 2018 12:53:48 +0000 Subject: [PATCH] Check for fully completed mission in PostMission. --- src/hub/hub.c | 6 ------ src/hub/postMission.c | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/hub/hub.c b/src/hub/hub.c index 297773d..8222c57 100644 --- a/src/hub/hub.c +++ b/src/hub/hub.c @@ -747,12 +747,6 @@ static void awardMissionTrophies(void) { awardTrophy("CLEAN"); } - - /* ignore teeka's mission, as this ends the game */ - if (completedMissions == numMissions - 1) - { - awardTrophy("FULLY_CLEAN"); - } } static int missionComparator(const void *a, const void *b) diff --git a/src/hub/postMission.c b/src/hub/postMission.c index 37cc5a9..19fd541 100644 --- a/src/hub/postMission.c +++ b/src/hub/postMission.c @@ -45,6 +45,11 @@ void initPostMission(void) { app.restrictTrophyAlert = 0; + if (status == MS_COMPLETE) + { + awardTrophy("FULLY_CLEAN"); + } + canContinue = 0; oNum = 0;