Fix no vehicle tile hash update when moving train in drive-through depot

This commit is contained in:
Jonathan G Rennison
2021-04-14 19:50:16 +01:00
parent e623560120
commit 686bcb8009

View File

@@ -3211,6 +3211,8 @@ static bool CheckTrainStayInDepot(Train *v)
u->direction = direction; u->direction = direction;
u->x_pos = x; u->x_pos = x;
u->y_pos = y; u->y_pos = y;
u->UpdatePosition();
u->Vehicle::UpdateViewport(false);
} }
InvalidateWindowData(WC_VEHICLE_DEPOT, depot_tile); InvalidateWindowData(WC_VEHICLE_DEPOT, depot_tile);