Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Inconsistent detection of coast tiles #7307
Version of OpenTTD
Consistent detection of coast tiles when placing newgrf industry.
Frequently, but inconsistently, coast tiles aren't detected correctly.
Bulldozing the tiles resolves the issue.
Steps to reproduce
Try building a Bulk Terminal in FIRS 3, along a straight run of SE coast (easiest placement).
Occasionally this won't be permitted. Then bulldoze the 4 coast tiles for the location. Then building will be permitted.
This might be due to some other tile var, not coast detection. Or it could easily be a bug in FIRS or nmlc. But it looks to me like some tile prop isn't set correctly.
Been present for a long time, causes issues placing these and similar industries at map-gen.
In at least some cases, this is explained by one or more of the coast tiles having trees on it. Land info tool in those cases reports 'Trees' rather than 'Coast or Riverbank' (I didn't notice trees visually as I always have trees invisible).
Trees shouldn't block industry construction IMO, but this is at least consistently reproducible.
I will investigate further, and probably retitle this issue.