prevent town growth from blocking ships patch

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
xarick
Transport Coordinator
Transport Coordinator
Posts: 299
Joined: 26 Feb 2015 00:52

prevent town growth from blocking ships patch

Post by xarick »

Purpose of this patch is to prevent towns from building roads, houses or bridges on tiles where ships could walk.
v2
- Fixed an issue which was preventing towns from attempting to grow with a road or bridge. Checking for traversable water tracks was being done too early in the code.

Image
This screenshot illustrate, on the left, a narrow water passage blocked by a town bridge, and some houses placed on coastal tiles which contain water.
On the right, with the patch applied, it shows that the bridges towards NE and SE weren't built, and also that there were no houses being placed on the coastal tiles which contain water. There's also a road piece towards SW direction that isn't being built, because of the coastal tile containing water.

[+] Spoiler
previous version (v1)
Formerly known as Samu
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 3 guests