-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid destructive recalculations during poly height changes; fixes #492
- Loading branch information
Showing
3 changed files
with
25 additions
and
15 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
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
fe20606
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.
Hmm, I think it is important to keep these. These are the same checks that are run when a (non-Forge merged) map is loaded, so it's important to keep the map in a consistent state when Lua modifies it.
fe20606
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.
Wrk confirms this breaks AOPID "pretty hilariously". Can we revert this? I'll leave some thoughts on #492
fe20606
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.
I suspect AOPID is running into a second bug exposed by fixing this one. The precalculated impassibility/exclusion info can go out of date when heights change, and solid lines shortcut the logic so you don't see incorrect step heights and clipping into low/high sides. I'll get the latter bug written up -- you can trigger it in stock 1.10 -- so we can discuss further.
Reverting this until we reach a fuller solution.