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/yapf | |
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/yapf')
-rw-r--r-- | src/yapf/follow_track.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/follow_track.hpp b/src/yapf/follow_track.hpp index cf7d98671..09bc98b76 100644 --- a/src/yapf/follow_track.hpp +++ b/src/yapf/follow_track.hpp @@ -342,7 +342,7 @@ public: // for now we handle only on-bridge speed limit if (!IsWaterTT() && IsBridgeTile(m_old_tile)) { - int spd = _bridge[GetBridgeType(m_old_tile)].speed; + int spd = GetBridgeSpec(GetBridgeType(m_old_tile))->speed; if (IsRoadTT()) spd *= 2; if (max_speed > spd) max_speed = spd; } |