Changeset - r1684:9f21468fa919
[Not reviewed]
master
0 1 0
tron - 20 years ago 2005-04-12 09:21:04
tron@openttd.org
(svn r2188) Revert r2185, because trains always accerlated (Requested by Celestar)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -229,7 +229,7 @@ static int GetTrainAcceleration(Vehicle 
 
	if (v->u.rail.railtype != 2) force = min(force, mass * 10 * 200);
 

	
 
	if (mode == AM_ACCEL) {
 
		return max((force - resistance) / (mass * 4), 2);
 
		return (force - resistance) / (mass * 4);
 
	} else {
 
		return min((-force - resistance) / (mass * 4), 10000 / (mass * 4));
 
	}
0 comments (0 inline, 0 general)