Skip to content

Fix: Make sea level locks aware of neighbouring canals#238

Open
zephyris wants to merge 1 commit intomainfrom
fix-237-sea-level-lock
Open

Fix: Make sea level locks aware of neighbouring canals#238
zephyris wants to merge 1 commit intomainfrom
fix-237-sea-level-lock

Conversation

@zephyris
Copy link
Contributor

Canal locks checked for elevation, to use alternate graphics with mini-lighthouses and breaking waves when at sea level. This looked odd when building locks on sea level land.

Therefore, add a canal_dike check, to check if canal walls would be built for that tile as a half-decent proxy for checking for neighbouring land tiles. Compare the top two locks in the example image.
image

(mostly) Fixes #237

Corner cases are when the lock is surrounded by sea level locks or rivers. Com[are the bottom two locks in the example image.

@zephyris zephyris force-pushed the fix-237-sea-level-lock branch 2 times, most recently from b2c80f2 to 14a1561 Compare January 21, 2026 20:25
@zephyris zephyris force-pushed the fix-237-sea-level-lock branch from 14a1561 to 372dd61 Compare January 21, 2026 20:27
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.

Lock is leaking when placed at sea level.

1 participant