diff options
author | belugas <belugas@openttd.org> | 2008-02-05 05:21:02 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-02-05 05:21:02 +0000 |
commit | 7f5f48281c301344a3f007037f49c2d12b5ebf10 (patch) | |
tree | 9c2717a65edae3fd296acdab60dde15fb2ba163c /src/bridge.h | |
parent | 23c8664593b6e7a4f2b1c0058d5f4491935c3682 (diff) | |
download | openttd-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.h | 2 |
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]; |