Page 1 of 1

prevent town growth from blocking ships patch

Posted: 04 Sep 2016 20:45
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)