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

This commit is contained in:
Jonathan G Rennison 2018-08-05 10:45:21 +01:00
parent b5ba189544
commit a87720ca06

View File

@ -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;
}