(svn r8884) -Fix

Replace SetSpeedLimitOnBridge() by something simpler
This commit is contained in:
tron
2007-02-24 18:44:30 +00:00
parent e3f60f716c
commit 12b1804d4e
4 changed files with 13 additions and 18 deletions

View File

@@ -880,7 +880,9 @@ static bool RoadVehAccelerate(Vehicle *v)
// Clamp
spd = min(spd, v->max_speed);
if (v->u.road.state == RVSB_WORMHOLE) spd = min(spd, SetSpeedLimitOnBridge(v));
if (v->u.road.state == RVSB_WORMHOLE && !(v->vehstatus & VS_HIDDEN)) {
spd = min(spd, GetBridge(GetBridgeType(v->tile))->speed * 2);
}
//updates statusbar only if speed have changed to save CPU time
if (spd != v->cur_speed) {