From d1c1a7cba725de322c2b7948db75fd83cdf77fe5 Mon Sep 17 00:00:00 2001 From: hackykid Date: Wed, 1 Jun 2005 10:30:45 +0000 Subject: [PATCH] (svn r2388) - Fix: [realistic accel] Very slow trains no longer get an increase in maximum speed when part of them is in a depot. --- train_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train_cmd.c b/train_cmd.c index b3273dc68a..25ec0c8e4b 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;