-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
map: properly rotate NPCs during update_mapgen
Fixes #35430 When a tinymap is rotated during update_mapgen, the NPCs would be moved via spawn_at_precise, which would clip their position to 0-11,0-11, effectively teleporting them to the upper left of the reality bubble. Rework rotate() to include a variable as to whether the rotation is setpos() safe, and use setpos() to relocate NPCs because that doesn't clip the position and teleport the NPCs.
- Loading branch information
1 parent
c8b02fe
commit c9700c6
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
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
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