(svn r2388) - Fix: [realistic accel] Very slow trains no longer get an increase in maximum speed when part of them is in a depot.
authorhackykid
Wed, 01 Jun 2005 10:30:45 +0000
changeset 1882 73937823fdb2
parent 1881 023a134a4b12
child 1883 3b02000cfbe0
(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
--- a/train_cmd.c	Mon May 30 22:16:05 2005 +0000
+++ b/train_cmd.c	Wed Jun 01 10:30:45 2005 +0000
@@ -176,7 +176,7 @@
 			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;