Changeset - r24621:9bbf2506db95
[Not reviewed]
master
0 1 0
Tyler Trahan - 4 years ago 2021-01-09 09:06:31
tyler@tylertrahan.com
Fix #8506: Towns shouldn't add junctions to NewGRF roads they cannot build (#8535)
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -1349,6 +1349,9 @@ static void GrowTownInTile(TileIndex *ti
 

	
 
	assert(tile < MapSize());
 

	
 
	/* Don't allow junctions on roadtypes which can't be built by towns. */
 
	if (IsTileType(tile, MP_ROAD) && !HasBit(GetRoadTypeInfo(GetRoadTypeRoad(tile))->flags, ROTF_TOWN_BUILD)) return;
 

	
 
	if (cur_rb == ROAD_NONE) {
 
		/* Tile has no road. First reset the status counter
 
		 * to say that this is the last iteration. */
0 comments (0 inline, 0 general)