mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 13:23:46 +00:00
(svn r18971) -Fix: Train acceleration for original acceleration model wasn't updated if the train's power changed.
This commit is contained in:
parent
990cbe6263
commit
2331ccd589
@ -3442,6 +3442,7 @@ static void TrainController(Train *v, Vehicle *nomove)
|
|||||||
|
|
||||||
if (GetTileRailType(gp.new_tile) != GetTileRailType(gp.old_tile)) {
|
if (GetTileRailType(gp.new_tile) != GetTileRailType(gp.old_tile)) {
|
||||||
v->First()->PowerChanged();
|
v->First()->PowerChanged();
|
||||||
|
v->First()->UpdateAcceleration();
|
||||||
}
|
}
|
||||||
|
|
||||||
v->track = chosen_track;
|
v->track = chosen_track;
|
||||||
|
Loading…
Reference in New Issue
Block a user