1
0
Fork 0

Fix #9316, 64eddaeb: at about 250.000 inhabitants the bridge length limit check overflows

pull/9321/head
rubidium42 2021-05-30 14:38:55 +02:00 committed by rubidium42
parent 0c96884700
commit 4613ababd3
1 changed files with 1 additions and 1 deletions

View File

@ -1178,7 +1178,7 @@ static bool GrowTownWithBridge(const Town *t, const TileIndex tile, const DiagDi
if (!(GetTownRoadBits(TileAddByDiagDir(tile, ReverseDiagDir(bridge_dir))) & DiagDirToRoadBits(bridge_dir))) return false; if (!(GetTownRoadBits(TileAddByDiagDir(tile, ReverseDiagDir(bridge_dir))) & DiagDirToRoadBits(bridge_dir))) return false;
/* We are in the right direction */ /* 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 TileIndex bridge_tile = tile; // Used to store the other waterside
const int delta = TileOffsByDiagDir(bridge_dir); const int delta = TileOffsByDiagDir(bridge_dir);