mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
Fix train bounding box/delta not being updated when entering bridge from 45° angle
This commit is contained in:
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…
Reference in New Issue
Block a user