mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r2058) -Fix: hopefully this fixes the reverse-train-in-depot-bugs (plural)
This commit is contained in:
parent
0c325e10da
commit
1eab014524
@ -1086,9 +1086,14 @@ static void ReverseTrainSwapVeh(Vehicle *v, int l, int r)
|
||||
/* update other vars */
|
||||
UpdateVarsAfterSwap(a);
|
||||
UpdateVarsAfterSwap(b);
|
||||
|
||||
VehicleEnterTile(a, a->tile, a->x_pos, a->y_pos);
|
||||
VehicleEnterTile(b, b->tile, b->x_pos, b->y_pos);
|
||||
} else {
|
||||
if (!(a->u.rail.track & 0x80)) a->direction ^= 4;
|
||||
UpdateVarsAfterSwap(a);
|
||||
|
||||
VehicleEnterTile(a, a->tile, a->x_pos, a->y_pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user