diff options
author | smatz <smatz@openttd.org> | 2008-01-23 22:34:04 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-01-23 22:34:04 +0000 |
commit | 5a7c9037709772e4678ee57d9b42f5332bd66f97 (patch) | |
tree | ae76a3390a465cf3bfc011e2b32d53d5ae55c298 /src/bridge_gui.cpp | |
parent | b5641ae0f2ca3723af7fe7f68c4ac45e113e8421 (diff) | |
download | openttd-5a7c9037709772e4678ee57d9b42f5332bd66f97.tar.xz |
(svn r11968) -Codechange: remove redundant FindLengthOfTunnel(), use GetTunnelBridgeLength() and/or GetOtherTunnelEnd() instead
Diffstat (limited to 'src/bridge_gui.cpp')
-rw-r--r-- | src/bridge_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp index 596ac1107..5b74e0cde 100644 --- a/src/bridge_gui.cpp +++ b/src/bridge_gui.cpp @@ -16,6 +16,7 @@ #include "map_func.h" #include "viewport_func.h" #include "gfx_func.h" +#include "tunnelbridge.h" #include "table/strings.h" @@ -182,7 +183,7 @@ void ShowBuildBridgeWindow(TileIndex start, TileIndex end, byte bridge_type) /* check which bridges can be built * get absolute bridge length * length of the middle parts of the bridge */ - const uint bridge_len = GetBridgeLength(start, end); + const uint bridge_len = GetTunnelBridgeLength(start, end); /* total length of bridge */ const uint tot_bridgedata_len = CalcBridgeLenCostFactor(bridge_len + 2); |