diff options
author | celestar <celestar@openttd.org> | 2005-04-11 21:10:47 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-04-11 21:10:47 +0000 |
commit | cc53b11637459ada5da5e4794a8bc56a221f2a25 (patch) | |
tree | 70fbb867099346bb7ca81ff1b32520beebd6e187 | |
parent | 4719c452e87a157c590a4352a88a33e4911aad6f (diff) | |
download | openttd-cc53b11637459ada5da5e4794a8bc56a221f2a25.tar.xz |
(svn r2185) -Fix: Made sure that the realistic acceleration does not freeze trains anymore
-rw-r--r-- | train_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c index a25e89dbd..55563530a 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -231,7 +231,7 @@ static int GetTrainAcceleration(Vehicle *v, bool mode) if (v->u.rail.railtype != 2) force = min(force, mass * 10 * 200); if (mode == AM_ACCEL) { - return (force - resistance) / (mass * 4); + return max((force - resistance) / (mass * 4), 2); } else { return min((-force - resistance) / (mass * 4), 10000 / (mass * 4)); } |