Skip to content

Patch bridge anomaly - #1900

Open
BazzaCuda wants to merge 10 commits into
Keriew:masterfrom
BazzaCuda:Patch-bridge-anomaly
Open

BazzaCuda wants to merge 10 commits into
Keriew:masterfrom
BazzaCuda:Patch-bridge-anomaly

Conversation

@BazzaCuda

Copy link
Copy Markdown

After deleting a bridge, a phantom array element with state=BUILDING_STATE_IN_USE exists in the buildings array, even though the bridge is no longer displayed. Furthermore, the "building" with the bridge's grid_offset is now the grass tile, not the bridge.
This results in an incorrect building count, inflated by however many bridges have been deleted.

This patches the problem.

@BazzaCuda

BazzaCuda commented Sep 5, 2026

Copy link
Copy Markdown
Author

p.s. this issue also prevents array_trim from properly trimming the array as array_trim stops when it hits the most recent "in use" element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants