Skip to content

Fix auto clear trees not working for docks, wharves and shipyards#1837

Merged
Johannes-callidus merged 1 commit into
Keriew:masterfrom
thebashsupremacy:bugfix/auto-clear-waterside-buildings
Jul 17, 2026
Merged

Fix auto clear trees not working for docks, wharves and shipyards#1837
Johannes-callidus merged 1 commit into
Keriew:masterfrom
thebashsupremacy:bugfix/auto-clear-waterside-buildings

Conversation

@thebashsupremacy

Copy link
Copy Markdown

Waterside buildings validate placement through map_water_determine_orientation, whose is_blocked_tile helper counted trees and shrubs as blocking regardless of the auto clear trees option. With the option enabled, vegetation on land tiles no longer blocks - the existing placement code then clears and charges for it, and the ghost and cost preview already handle it through the same check.

Waterside buildings validate placement through map_water_determine_orientation,
whose is_blocked_tile helper counted trees and shrubs as blocking regardless of
the auto clear trees option. With the option enabled, vegetation on land tiles
no longer blocks - the existing placement code then clears and charges for it,
and the ghost and cost preview already handle it through the same check.
@Johannes-callidus
Johannes-callidus merged commit 8faf80a into Keriew:master Jul 17, 2026
20 checks passed
@Johannes-callidus

Copy link
Copy Markdown
Collaborator

Good job!

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