Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCrash - Assertion failed at line 213 of src\core\kdtree.hpp: next != INVALID_NODE #7847
Comments
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Sounds like a possible clone or resurgence of #7481 (related to signs). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
autosave11.zip 1 - load the autosave |
This comment has been minimized.
This comment has been minimized.
Confirm reproduction. |
This comment has been minimized.
This comment has been minimized.
Lowering the land is not required for reproduction, it seems. The sign moves as soon as the station is demolished (station tiles removed), but the Kdtree position is not updated. I think the best fix might be to modify |
This comment has been minimized.
This comment has been minimized.
Another solution might be to change |
…nates for stations Keeping track of whether the ViewportSign data are valid for Kdtree usage allows moving more housekeeping to Station::UpdateVirtCoord and Waypoint::UpdateVirtCoord and helps simplify a lot of other code.
…nates for stations Keeping track of whether the ViewportSign data are valid for Kdtree usage allows moving more housekeeping to Station::UpdateVirtCoord and Waypoint::UpdateVirtCoord and helps simplify a lot of other code.
…7849) Ensure the same coordinates are used for station/town/player signs regardless of how the landscape changes below it after the coordinates were first determined. By keeping track of whether each ViewportSign is valid for Kdtree use (and only ever registering the viewport sign when the object is valid) a lot of code can be simplified and become more robust at the same time.
Version of OpenTTD
1.10.0-beta1
Expected result
Actual result
Steps to reproduce
crash.zip