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 #72758, i.e. the closing over of a constructed hole into a roofed room below on a save/load cycle.
Describe the solution
Add code on hole construction to check what the terrain below is and transform it into the corresponding terrain resulting from smashing the roof if the terrain below is a roofed one.
Describe alternatives you've considered
Testing
Using a copy of the save from the bug report as a base:
Additional context
Important notes:
Also, I suffer from the view not being properly updated, i.e. the 3D view visually displays the terrain that was below before the conversion, while looking at it ('x') displays the correct terrain below. I've tried various map cache updates and invalidation calls, but none work. The appropriate call probably is located elsewhere. However, I need help to find where to look for it. It can be noted that the visual display is corrected after a save/load cycle, but isn't corrected by moving away (outside of reality bubble range) and then return.