summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2010-04-03 20:25:23 +0000
committerpeter1138 <peter1138@openttd.org>2010-04-03 20:25:23 +0000
commit8c4c691448e29fdbfcee274720ac4e4612f0812a (patch)
treea8b348eeccba2f3695757388f5e011dd24af146f /src/rail_cmd.cpp
parent4415841ce1a8209c9c162b2ef316ec71dcd6f5a7 (diff)
downloadopenttd-8c4c691448e29fdbfcee274720ac4e4612f0812a.tar.xz
(svn r19556) -Fix (r19434): Incorrect speed limit reported for rail depots with original acceleration model.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp10
1 files 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;