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
commitcc2b8b574a7df99a4e2912ddca06d227cd62c570 (patch)
treebb6d4544cc26e45639a2159c483064afedebca6d /src/bridge.h
parent1011ac353b30d33945c5e5ad5f3d52186c829afc (diff)
downloadopenttd-cc2b8b574a7df99a4e2912ddca06d227cd62c570.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];