Fix train bounding box/delta not being updated when entering bridge from 45° angle

pull/73/head
Jonathan G Rennison 6 years ago
parent b5ba189544
commit a87720ca06

@ -3389,6 +3389,7 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
v->x_pos = gp.x;
v->y_pos = gp.y;
v->UpdatePosition();
v->UpdateDeltaXY(v->direction);
if ((v->vehstatus & VS_HIDDEN) == 0) v->Vehicle::UpdateViewport(true);
continue;
}

Loading…
Cancel
Save