(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:
belugas
2008-02-05 05:21:02 +00:00
parent 80daad8d4d
commit 62b3520e51
6 changed files with 14 additions and 18 deletions

View File

@@ -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 */