summaryrefslogtreecommitdiff
path: root/src/bridge.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-02-04 15:37:23 +0000
committerrubidium <rubidium@openttd.org>2011-02-04 15:37:23 +0000
commit46b3d114a828916226d66ec7536af9f62948759a (patch)
treeb85595b42c2c58187284ee89452b8e71709ceeae /src/bridge.h
parent4355231f677b2ad779daaab701444c5b003cdaed (diff)
downloadopenttd-46b3d114a828916226d66ec7536af9f62948759a.tar.xz
(svn r21959) -Change: replace longbridges with custom maximum bridge and tunnel length setting
Diffstat (limited to 'src/bridge.h')
-rw-r--r--src/bridge.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bridge.h b/src/bridge.h
index 69462e450..521c3f128 100644
--- a/src/bridge.h
+++ b/src/bridge.h
@@ -43,7 +43,7 @@ typedef uint BridgeType; ///< Bridge spec number.
struct BridgeSpec {
Year avail_year; ///< the year where it becomes available
byte min_length; ///< the minimum length (not counting start and end tile)
- byte max_length; ///< the maximum length (not counting start and end tile)
+ uint16 max_length; ///< the maximum length (not counting start and end tile)
uint16 price; ///< the price multiplier
uint16 speed; ///< maximum travel speed (1 unit = 1/1.6 mph = 1 km-ish/h)
SpriteID sprite; ///< the sprite which is used in the GUI
@@ -72,7 +72,4 @@ int CalcBridgeLenCostFactor(int x);
void ResetBridges();
-static const uint MAX_BRIDGE_LENGTH = 16; ///< Maximum length of the bridge
-static const uint MAX_BRIDGE_LENGTH_LONGBRIDGES = 100; ///< Maximum length of the bridge with longbridges enabled
-
#endif /* BRIDGE_H */