-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Add function to get navigation map iteration id from NavigationServer #84275
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smix8
force-pushed
the
navmap_iteration_id
branch
2 times, most recently
from
November 1, 2023 02:21
7bd9f1f
to
b5b3d35
Compare
smix8
added
the
cherrypick:4.2
Considered for cherry-picking into a future 4.2.x release
label
Nov 1, 2023
smix8
force-pushed
the
navmap_iteration_id
branch
2 times, most recently
from
February 20, 2024 09:14
52ff43d
to
3cf3956
Compare
Scony
reviewed
Feb 20, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is very easy to test - just saying :)
Scony
approved these changes
Feb 21, 2024
Adds function to get navigation map iteration id from NavigationServer.
smix8
force-pushed
the
navmap_iteration_id
branch
from
February 22, 2024 08:46
3cf3956
to
313c1d1
Compare
Removed the old |
akien-mga
approved these changes
Feb 22, 2024
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cherrypick:4.2
Considered for cherry-picking into a future 4.2.x release
enhancement
topic:navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds NavigationServer
map_get_iteration_id()
function to get current navigation map iteration id.This is useful to give users an option to check if a navigation map has synchronized before doing queries.
Doing queries on never synchronized navigation maps triggers certain warnings / errors.
The NavigationServer
map_changed
signal alone is too unreliable to track this.Also increases the wrap range of the map iteration id to
UINT32_MAX
so long-running games and servers do not have to encounter and deal with wraps in a normal lifetime.