summaryrefslogtreecommitdiff
path: root/src/bridge.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-02-11 17:35:15 +0000
committerbelugas <belugas@openttd.org>2008-02-11 17:35:15 +0000
commit6a717aa49bcaf5c689204c46fb91361f0deba90b (patch)
treebb6d4544cc26e45639a2159c483064afedebca6d /src/bridge.h
parenta9ce2a7122b8140b183a35f2bae3e9b34e85e072 (diff)
downloadopenttd-6a717aa49bcaf5c689204c46fb91361f0deba90b.tar.xz
(svn r12111) -Codechange: Rename Bridge to BridgeSpec, out of consistensy with other Specs in used.
Diffstat (limited to 'src/bridge.h')
-rw-r--r--src/bridge.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bridge.h b/src/bridge.h
index 96526850d..fde98f57e 100644
--- a/src/bridge.h
+++ b/src/bridge.h
@@ -17,7 +17,7 @@ typedef uint BridgeType;
/** Struct containing information about a single bridge type
*/
-struct Bridge {
+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)
@@ -32,12 +32,12 @@ struct Bridge {
byte flags; ///< bit 0 set: disable drawing of far pillars.
};
-extern Bridge _bridge[MAX_BRIDGES];
+extern BridgeSpec _bridge[MAX_BRIDGES];
Foundation GetBridgeFoundation(Slope tileh, Axis axis);
bool HasBridgeFlatRamp(Slope tileh, Axis axis);
-static inline const Bridge *GetBridgeSpec(BridgeType i)
+static inline const BridgeSpec *GetBridgeSpec(BridgeType i)
{
assert(i < lengthof(_bridge));
return &_bridge[i];