diff options
author | Yexo <yexo@openttd.org> | 2009-01-21 02:31:55 +0000 |
---|---|---|
committer | Yexo <yexo@openttd.org> | 2009-01-21 02:31:55 +0000 |
commit | db3ee34b4468aa3448b64e339258760885c5d716 (patch) | |
tree | 272533ac91b7bc3ab16c3ee1a997e142f3170a2a /src/tunnel_map.cpp | |
parent | 5e7669b539002cb9ec9e608f4601a827b5e9da57 (diff) | |
download | openttd-db3ee34b4468aa3448b64e339258760885c5d716.tar.xz |
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
Diffstat (limited to 'src/tunnel_map.cpp')
-rw-r--r-- | src/tunnel_map.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tunnel_map.cpp b/src/tunnel_map.cpp index 648f233a8..8400c9483 100644 --- a/src/tunnel_map.cpp +++ b/src/tunnel_map.cpp @@ -47,6 +47,7 @@ bool IsTunnelInWayDir(TileIndex tile, uint z, DiagDirection dir) do { tile -= delta; + if (!IsValidTile(tile)) return false; height = GetTileZ(tile); } while (z < height); |