summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-21 07:44:33 +0000
committertron <tron@openttd.org>2006-02-21 07:44:33 +0000
commit08f132fef2a0059265e4898c24751c37d5b59023 (patch)
treeb5ad6eed282fddec3c6982f20c96ea7107886456
parentb8b6084da29cf5b7d264d8baf485e0285164a7e2 (diff)
downloadopenttd-08f132fef2a0059265e4898c24751c37d5b59023.tar.xz
(svn r3645) Fix stupid typos in last (r3644) commit *sigh*
-rw-r--r--tunnelbridge_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 42df5fbac..a56a7f593 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -433,9 +433,9 @@ static bool DoCheckTunnelInWay(TileIndex tile, uint z, uint dir)
do {
tile -= delta;
height = GetTileZ(tile);
- } while (z < tile);
+ } while (z < height);
- if (z == tile &&
+ if (z == height &&
IsTileType(tile, MP_TUNNELBRIDGE) &&
GB(_m[tile].m5, 4, 4) == 0 &&
GB(_m[tile].m5, 0, 2) == dir) {