Fix eeb88e8: Trains reversed while paused do not correctly update sprite bounds (#8540)

This commit is contained in:
Matt Kimber
2021-01-17 18:57:16 +00:00
committed by GitHub
parent 120c6fda61
commit 40d5fe1631
6 changed files with 105 additions and 68 deletions

View File

@@ -470,6 +470,7 @@ void AfterLoadVehicles(bool part_of_load)
v->UpdateDeltaXY();
v->coord.left = INVALID_COORD;
v->sprite_cache.old_coord.left = INVALID_COORD;
v->UpdatePosition();
v->UpdateViewport(false);
}