From 8c4c691448e29fdbfcee274720ac4e4612f0812a Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 3 Apr 2010 20:25:23 +0000 Subject: (svn r19556) -Fix (r19434): Incorrect speed limit reported for rail depots with original acceleration model. --- src/rail_cmd.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index ce48c9e37..e0f85675c 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -2629,10 +2629,12 @@ static void GetTileDesc_Track(TileIndex tile, TileDesc *td) case RAIL_TILE_DEPOT: td->str = STR_LAI_RAIL_DESCRIPTION_TRAIN_DEPOT; - if (td->rail_speed > 0) { - td->rail_speed = min(td->rail_speed, 61); - } else { - td->rail_speed = 61; + if (_settings_game.vehicle.train_acceleration_model != AM_ORIGINAL) { + if (td->rail_speed > 0) { + td->rail_speed = min(td->rail_speed, 61); + } else { + td->rail_speed = 61; + } } break; -- cgit v1.2.3-70-g09d2