Mercurial > hg > openttd
changeset 7880:0c095a634caa draft
(svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash...
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 13 Nov 2007 22:44:41 +0000 |
parents | 3a077e916b1d |
children | 088db0c07ab9 |
files | src/town_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -933,7 +933,7 @@ return false; } 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? */ if (bridge_length == 1) return false;