Skip to content

Commit

Permalink
Do not reduce number of humans that still need rescue in SARMissionHo…
Browse files Browse the repository at this point in the history
…istInNotify().
  • Loading branch information
jmbau committed Aug 17, 2024
1 parent 595b013 commit bbe23bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/mission.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bbe23bf

Please sign in to comment.