mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
160e719836
commit
74d0bf52b2
|
@ -304,7 +304,7 @@ static bool TrainShouldStop(const Vehicle* v, TileIndex tile)
|
||||||
static int GetTrainAcceleration(Vehicle *v, bool mode)
|
static int GetTrainAcceleration(Vehicle *v, bool mode)
|
||||||
{
|
{
|
||||||
int max_speed = 2000;
|
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};
|
int curvecount[2] = {0, 0};
|
||||||
|
|
||||||
/*first find the curve speed limit */
|
/*first find the curve speed limit */
|
||||||
|
|
Loading…
Reference in New Issue