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/tunnelbridge_cmd.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/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 7d33f62f7..27667219f 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -527,6 +527,7 @@ CommandCost CmdBuildTunnel(TileIndex start_tile, uint32 flags, uint32 p1, uint32 for (;;) { end_tile += delta; + if (!IsValidTile(end_tile)) return_cmd_error(STR_TUNNEL_THROUGH_MAP_BORDER); end_tileh = GetTileSlope(end_tile, &end_z); if (start_z == end_z) break; |