summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-12-15 17:55:59 +0000
committertron <tron@openttd.org>2005-12-15 17:55:59 +0000
commit28fe368b7fee701d92c2c459c28bcaeae7f43235 (patch)
treea7149cdbdf03a226b7a04ea8a0343d8dea79ec0b /tunnelbridge_cmd.c
parentca52ec33b215834a20a5a1ef327da773a7f8e2c3 (diff)
downloadopenttd-28fe368b7fee701d92c2c459c28bcaeae7f43235.tar.xz
(svn r3308) BAD
foo.h: int bar; GOOD foo.h: extern int bar; foo.c: int bar;
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index ae7268507..88d9d2d2e 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -55,6 +55,9 @@ const Bridge orig_bridge[] = {
{ 90, 2, 32, 510, 608, 0xA28 | PALETTE_TO_STRUCT_GREY , STR_BRIDGE_TUBULAR_SILICON , NULL, 0 }
};
+Bridge _bridge[MAX_BRIDGES];
+
+
// calculate the price factor for building a long bridge.
// basically the cost delta is 1,1, 1, 2,2, 3,3,3, 4,4,4,4, 5,5,5,5,5, 6,6,6,6,6,6, 7,7,7,7,7,7,7, 8,8,8,8,8,8,8,8,
int CalcBridgeLenCostFactor(int x)