summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-01-22 09:57:31 +0000
committerpeter1138 <peter1138@openttd.org>2009-01-22 09:57:31 +0000
commit92b9ff3f9660fc2a5ac154a762f7568e40c97ad4 (patch)
tree0fa5898d7fcb6f176cb5bb89f66bc470fc54cad2
parent0d52f3b417bb5aec6fda5b588ad6d96c1c7ce40f (diff)
downloadopenttd-92b9ff3f9660fc2a5ac154a762f7568e40c97ad4.tar.xz
(svn r15205) -Revert (r7421, partial): Support for MaxTE solves problem in a better way
-rw-r--r--src/train_cmd.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 6aa7eda90..59cab1b38 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -502,11 +502,9 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
resistance += incl;
resistance *= 4; //[N]
- /* Due to the mph to m/s conversion below, at speeds below 3 mph the force is
- * actually double the train's power */
const int max_te = v->u.rail.cached_max_te; // [N]
int force;
- if (speed > 2) {
+ if (speed > 0) {
switch (v->u.rail.railtype) {
case RAILTYPE_RAIL:
case RAILTYPE_ELECTRIC: