"Center view" centers to player's current z-level #76975
Merged
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.
Summary
None
Purpose of change
Related to #76974, pressing the center view button doesn't reset the z-level offset
Describe the solution
Reset the z-level offset when that command is sent.
Technically speaking we don't have any method to permanently offset the player's view across z-levels, so this should never be necessary. But it's free and setting a z-level offset could be implemented.
This just makes it work as you'd expect it to work - instead of never modifying the z-level offset, it just centers it! 'Cause you told the game to "center view"!
Describe alternatives you've considered
Testing
2024-10-11.16-05-00.mp4
Additional context