diff options
author | truelight <truelight@openttd.org> | 2005-03-25 12:07:26 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-03-25 12:07:26 +0000 |
commit | 0560b88db26b0e2a9ae7d8eb7dd0967684f8af43 (patch) | |
tree | c3d203afe5368807bdc20e6ab23c0f185502e1e8 /train_cmd.c | |
parent | 4d55d8a4bd550a49aa4ea89b2db7177eb3268fdc (diff) | |
download | openttd-0560b88db26b0e2a9ae7d8eb7dd0967684f8af43.tar.xz |
(svn r2058) -Fix: hopefully this fixes the reverse-train-in-depot-bugs (plural)
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/train_cmd.c b/train_cmd.c index a99c6f5b4..512930b28 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -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); } } |