Fix no vehicle tile hash update when moving train in drive-through depot
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user