Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not reduce number of humans that still need rescue in SARMissionHo… #60

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

jmbau
Copy link
Collaborator

@jmbau jmbau commented Aug 17, 2024

…istInNotify().

Finally, I understood where the issue was. Here is a log of what happen when a human is hoisted:

___src/simutils.c: Entering SARSimDoHoistIn()
______src/simutils.c: Entering SARSimBoardObject()
_________src/mission.c: Entering SARMissionPassengersEnterNotify()
___________ objective->humans_need_rescue is reduced here
_________src/mission.c: Leaving SARMissionPassengersEnterNotify()
______src/simutils.c: Leaving SARSimBoardObject()
______src/mission.c: Entering SARMissionHoistInNotify()
________ objective->humans_need_rescue is reduced here
______src/mission.c: Leaving SARMissionHoistInNotify()
___src/simutils.c: Leaving SARSimDoHoistIn()

Removing the second decrementation solves the issue #20 . If the first decrementation (the one in SARMissionPassengersEnterNotify()) is removed instead of the second one, it causes other issues.

@hsanjuan hsanjuan merged commit a8c7780 into master Sep 3, 2024
1 check passed
@hsanjuan hsanjuan deleted the solves_issue_#20 branch September 3, 2024 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants