Skip to content

Commit

Permalink
Merge pull request #60 from SearchAndRescue2/solves_issue_#20
Browse files Browse the repository at this point in the history
Do not reduce number of humans that still need rescue in SARMissionHo…
  • Loading branch information
hsanjuan committed Sep 3, 2024
2 parents 1a43444 + bbe23bf commit a8c7780
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 a8c7780

Please sign in to comment.