summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-04-12 09:21:04 +0000
committertron <tron@openttd.org>2005-04-12 09:21:04 +0000
commit277d9d237b4cf1f18bfffa7899e63fbdf296c80d (patch)
treefde5f38929aae4a723ee0c47fc43db10bbcf1454
parente00785a855c618b54279ad9cc2137ce9f079fa0a (diff)
downloadopenttd-277d9d237b4cf1f18bfffa7899e63fbdf296c80d.tar.xz
(svn r2188) Revert r2185, because trains always accerlated (Requested by Celestar)
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 7168a2912..c2aa26eaa 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -229,7 +229,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 max((force - resistance) / (mass * 4), 2);
+ return (force - resistance) / (mass * 4);
} else {
return min((-force - resistance) / (mass * 4), 10000 / (mass * 4));
}