mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-15 16:45:08 +01:00
(svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash...
This commit is contained in:
parent
9c94aae30f
commit
f0915957d4
@ -933,7 +933,7 @@ static bool GrowTownWithBridge(const Town *t, TileIndex tile, DiagDirection brid
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
bridge_tile += delta;
|
bridge_tile += delta;
|
||||||
} while (IsWaterTile(bridge_tile));
|
} while (TileX(bridge_tile) != 0 && TileY(bridge_tile) != 0 && IsWaterTile(bridge_tile) && TileX(bridge_tile) != 0);
|
||||||
|
|
||||||
/* no water tiles in between? */
|
/* no water tiles in between? */
|
||||||
if (bridge_length == 1) return false;
|
if (bridge_length == 1) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user