summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-10 17:13:37 +0000
committerrubidium <rubidium@openttd.org>2007-09-10 17:13:37 +0000
commitd651f6b9eda05a395254e2b17cafc8a9d1dd20f9 (patch)
tree90c7b805267dafd1cfd94e1860ca61fe9cee718b /src
parentb658ef535ec94e45fdcbd7ad4046f0078e401214 (diff)
downloadopenttd-d651f6b9eda05a395254e2b17cafc8a9d1dd20f9.tar.xz
(svn r11086) -Fix/Revert (r11053, r10984): "fixing" r11053 made the acceleration code use the wrong speed, which can be fixed by reverting a small piece of r10984.
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index a320628a9..a17f77acb 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -304,7 +304,7 @@ static bool TrainShouldStop(const Vehicle* v, TileIndex tile)
static int GetTrainAcceleration(Vehicle *v, bool mode)
{
int max_speed = 2000;
- int speed = v->GetDisplaySpeed(); //[mph]
+ int speed = v->cur_speed * 10 / 16; // km-ish/h -> mp/h
int curvecount[2] = {0, 0};
/*first find the curve speed limit */