mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r18848) -Fix (r18838): the original accelaration got broken
This commit is contained in:
parent
fdf89f9e8e
commit
736c12f6ae
@ -2941,7 +2941,7 @@ int Train::UpdateSpeed()
|
|||||||
|
|
||||||
switch (_settings_game.vehicle.train_acceleration_model) {
|
switch (_settings_game.vehicle.train_acceleration_model) {
|
||||||
default: NOT_REACHED();
|
default: NOT_REACHED();
|
||||||
case TAM_ORIGINAL: accel = this->acceleration * (this->GetAccelerationStatus() == AM_BRAKE) ? -4 : 2; break;
|
case TAM_ORIGINAL: accel = this->acceleration * (this->GetAccelerationStatus() == AM_BRAKE ? -4 : 2); break;
|
||||||
case TAM_REALISTIC:
|
case TAM_REALISTIC:
|
||||||
this->max_speed = this->GetCurrentMaxSpeed();
|
this->max_speed = this->GetCurrentMaxSpeed();
|
||||||
accel = this->GetAcceleration();
|
accel = this->GetAcceleration();
|
||||||
|
Loading…
Reference in New Issue
Block a user