summaryrefslogtreecommitdiff
path: root/src/bridge.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-02-05 05:21:02 +0000
committerbelugas <belugas@openttd.org>2008-02-05 05:21:02 +0000
commit62b3520e51fb51c66c094f304a85461564c0b364 (patch)
tree9c2717a65edae3fd296acdab60dde15fb2ba163c /src/bridge.h
parent80daad8d4df808d3500c0b677b1282fcdc122dfc (diff)
downloadopenttd-62b3520e51fb51c66c094f304a85461564c0b364.tar.xz
(svn r12066) -Codechange: Rename GetBridge for the more common GetBridgeSpec
-Codechange: Remove direct access to the _bridge table in favor of the above mentioned GetBridgeSpec -Codechange: Rationalize the use of Bridge type pointer
Diffstat (limited to 'src/bridge.h')
-rw-r--r--src/bridge.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge.h b/src/bridge.h
index 9088e96c1..29afd06b1 100644
--- a/src/bridge.h
+++ b/src/bridge.h
@@ -35,7 +35,7 @@ extern Bridge _bridge[MAX_BRIDGES];
Foundation GetBridgeFoundation(Slope tileh, Axis axis);
bool HasBridgeFlatRamp(Slope tileh, Axis axis);
-static inline const Bridge *GetBridge(uint i)
+static inline const Bridge *GetBridgeSpec(uint i)
{
assert(i < lengthof(_bridge));
return &_bridge[i];