1
0
Fork 0

Fix #9903: Don't build houses around half-tile roads after a bridge or tunnel

pull/10003/head
dP 2022-09-05 23:58:06 +03:00
parent b5f2004c26
commit cdeefe7bd8
1 changed files with 3 additions and 0 deletions

View File

@ -1592,6 +1592,9 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
return;
}
/* Don't build houses around half-tile roads in the rare case we ended up on one. */
if (HasExactlyOneBit(cur_rb)) allow_house = false;
/* Possibly extend the road in a direction.
* Randomize a direction and if it has a road, bail out. */
target_dir = RandomDiagDir();