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 | e3c69b7c4ebebba0aa85ef41ff6627705acb1db5 (patch) | |
tree | 272533ac91b7bc3ab16c3ee1a997e142f3170a2a /src/tunnel_map.cpp | |
parent | 470437df70d63b2c44ce34d408b6820cfa446aed (diff) | |
download | openttd-e3c69b7c4ebebba0aa85ef41ff6627705acb1db5.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); |