summaryrefslogtreecommitdiff
path: root/src/train_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/train_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/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index def649ccd..a4c730939 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -3132,7 +3132,7 @@ static void TrainController(Vehicle *v, bool update_image)
* - for bridges, only the middle part - without the bridge heads */
if (!(v->vehstatus & VS_HIDDEN)) {
v->cur_speed =
- min(v->cur_speed, GetBridge(GetBridgeType(v->tile))->speed);
+ min(v->cur_speed, GetBridgeSpec(GetBridgeType(v->tile))->speed);
}
if (!IsTileType(gp.new_tile, MP_TUNNELBRIDGE) || !HasBit(VehicleEnterTile(v, gp.new_tile, gp.x, gp.y), VETS_ENTERED_WORMHOLE)) {