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
commit7f5f48281c301344a3f007037f49c2d12b5ebf10 (patch)
tree9c2717a65edae3fd296acdab60dde15fb2ba163c /src/bridge.h
parent23c8664593b6e7a4f2b1c0058d5f4491935c3682 (diff)
downloadopenttd-7f5f48281c301344a3f007037f49c2d12b5ebf10.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];