summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
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/roadveh_cmd.cpp
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/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index f374197a3..7098797a9 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -956,7 +956,7 @@ static bool RoadVehAccelerate(Vehicle *v)
/* Clamp */
spd = min(spd, v->max_speed);
if (v->u.road.state == RVSB_WORMHOLE && !(v->vehstatus & VS_HIDDEN)) {
- spd = min(spd, GetBridge(GetBridgeType(v->tile))->speed * 2);
+ spd = min(spd, GetBridgeSpec(GetBridgeType(v->tile))->speed * 2);
}
/* updates statusbar only if speed have changed to save CPU time */