From 74d0bf52b2c7f58517fcfb4b8ff5c606073edc21 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 10 Sep 2007 17:13:37 +0000 Subject: (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. --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3-70-g09d2