# HG changeset patch # User hackykid # Date 2005-06-01 10:30:45 # Node ID b657f9bda5ce2076f9e617bd1d584dcbb4b4d80d # Parent ce1fe6a2816a3ef95966cdf042841fbc612a4644 (svn r2388) - Fix: [realistic accel] Very slow trains no longer get an increase in maximum speed when part of them is in a depot. diff --git a/train_cmd.c b/train_cmd.c --- a/train_cmd.c +++ b/train_cmd.c @@ -176,7 +176,7 @@ static int GetTrainAcceleration(Vehicle 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;