summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackykid <hackykid@openttd.org>2005-06-01 10:30:45 +0000
committerhackykid <hackykid@openttd.org>2005-06-01 10:30:45 +0000
commitd1c1a7cba725de322c2b7948db75fd83cdf77fe5 (patch)
tree6186c19fc0c52747cff0454e65eb2ac241c2a225
parent55423efb0687d937256d17ad267fce67ed9bf5cf (diff)
downloadopenttd-d1c1a7cba725de322c2b7948db75fd83cdf77fe5.tar.xz
(svn r2388) - Fix: [realistic accel] Very slow trains no longer get an increase in maximum speed when part of them is in a depot.
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index b3273dc68..25ec0c8e4 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -176,7 +176,7 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
max_speed = min(rvi->max_speed, max_speed);
if (u->u.rail.track == 0x80)
- max_speed = 61;
+ max_speed = min(61, max_speed);
vmass = rvi->weight; //[t]
vmass += (_cargoc.weights[u->cargo_type] * u->cargo_count) / 16;