Changeset - r25580:d0577e21a282
[Not reviewed]
master
0 1 0
rubidium42 - 3 years ago 2021-05-30 12:38:55
rubidium@openttd.org
Fix #9316, 64eddaeb: at about 250.000 inhabitants the bridge length limit check overflows
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -1178,7 +1178,7 @@ static bool GrowTownWithBridge(const Tow
 
	if (!(GetTownRoadBits(TileAddByDiagDir(tile, ReverseDiagDir(bridge_dir))) & DiagDirToRoadBits(bridge_dir))) return false;
 

	
 
	/* We are in the right direction */
 
	uint8 bridge_length = 0;      // This value stores the length of the possible bridge
 
	int bridge_length = 0;      // This value stores the length of the possible bridge
 
	TileIndex bridge_tile = tile; // Used to store the other waterside
 

	
 
	const int delta = TileOffsByDiagDir(bridge_dir);
0 comments (0 inline, 0 general)