1
0
Fork 0
dP 2025-06-24 07:00:00 +00:00 committed by GitHub
commit 37515d7ea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -1623,6 +1623,9 @@ static TownGrowthResult GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, Dia
return TownGrowthResult::Continue;
}
/* 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();