src/bridge_gui.cpp
changeset 8398 1e181e2e4e15
parent 8264 b1e85998c7d3
child 8491 97fcf662c3c3
--- a/src/bridge_gui.cpp	Wed Jan 23 20:02:30 2008 +0000
+++ b/src/bridge_gui.cpp	Wed Jan 23 22:34:04 2008 +0000
@@ -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 @@
 		/* 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);