forked from mirror/OpenTTD
(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
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user