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

MapAndreas and FCNPC_SetMinHeightPosCall fix #259

Merged
merged 2 commits into from
Nov 16, 2021
Merged

Conversation

IS4Code
Copy link
Contributor

@IS4Code IS4Code commented Nov 16, 2021

This pull request fixes two (unrelated) things:

  • The integration with MapAndreas does not work at all: the original natives use their own instance, but the CServer has its own instance that is never initialized. This simply uses the natives' instance.
  • FCNPC_SetMinHeightPosCall causes the new Z coordinate not to be applied when the difference is within the accepted range (otherwise FCNPC_OnChangeHeightPos is called which works fine). This changes that so that the new value is rejected if and only if FCNPC_OnChangeHeightPos returns false.

@ziggi ziggi merged commit b744c24 into ziggi:master Nov 16, 2021
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.

None yet

2 participants