Fix characters at the wrong level #75459
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
Fix #75424, fix #75428, i.e. map rotation moving characters to map's "official" (abs_pos) Z level rather than retaining them at their current level.
This might also deal with #75244, but since I was unable to repeat that when following the bug report instructions I can't verify that.
Describe the solution
Use the correct Z level reference when rotating maps, i.e. retain them at their current level.
Describe alternatives you've considered
Testing
Repeating the error situations for the two fixed reports and verifying that the characters showed up at the correct Z level (Van whatever at the ground level, Luliya at her usual spot at level 2, and Rubik at his trading station at level 1).
Additional context
This being caused by rotation made it hard to track down, as reproduction attempts happened to be performed on unrotated maps...