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 | 62b3520e51fb51c66c094f304a85461564c0b364 (patch) | |
tree | 9c2717a65edae3fd296acdab60dde15fb2ba163c /src/yapf | |
parent | 80daad8d4df808d3500c0b677b1282fcdc122dfc (diff) | |
download | openttd-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/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; } |