summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-01-22 14:34:29 +0000
committerpeter1138 <peter1138@openttd.org>2009-01-22 14:34:29 +0000
commitc1622b04abe59afe12822139bf17f80c5593163c (patch)
tree0d99c8a827b993ce83ed01cfd54e8056e595bf1a
parent8ef066baeeb965a0067c687f9e0e2d26d4728418 (diff)
downloadopenttd-c1622b04abe59afe12822139bf17f80c5593163c.tar.xz
(svn r15208) -Codechange: Remove some kind (undocumented, so who really knows) of original attempt to limit maximum tractive effort from 'realistic' acceleration.
-rw-r--r--src/train_cmd.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 59cab1b38..d79a66dd5 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -526,10 +526,6 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
force = max(force, (mass * 8) + resistance);
}
- if (force <= 0) force = 10000;
-
- if (v->u.rail.railtype != RAILTYPE_MAGLEV) force = min(force, mass * 10 * 200);
-
if (mode == AM_ACCEL) {
return (force - resistance) / (mass * 4);
} else {