From bbe23bf6af885b83f3dec4d9511da63a33489b5c Mon Sep 17 00:00:00 2001 From: jmbaud Date: Sat, 17 Aug 2024 16:50:11 +0200 Subject: [PATCH] Do not reduce number of humans that still need rescue in SARMissionHoistInNotify(). --- src/mission.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mission.c b/src/mission.c index 609fe9a..a686874 100644 --- a/src/mission.c +++ b/src/mission.c @@ -804,10 +804,16 @@ void SARMissionHoistInNotify( * instant all humans have been picked up. */ case SAR_MISSION_OBJECTIVE_PICK_UP: - /* Reduce number of humans that still need rescue, note that + /* Original comment: + * Reduce number of humans that still need rescue, note that * we do not care which object hoisted in these humans. + * + * New comment: + * Do not reduce number of humans that still need rescue + * because that has be done earlier by + * SARMissionPassengersEnterNotify(). */ - objective->humans_need_rescue -= hoisted_in; + /* objective->humans_need_rescue -= hoisted_in; */ /* All humans picked up? */ if(objective->humans_need_rescue <= 0)