From 1eab0145244ce4e44e8538ea500cc802a86d85d0 Mon Sep 17 00:00:00 2001 From: truelight Date: Fri, 25 Mar 2005 12:07:26 +0000 Subject: [PATCH] (svn r2058) -Fix: hopefully this fixes the reverse-train-in-depot-bugs (plural) --- train_cmd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/train_cmd.c b/train_cmd.c index a99c6f5b4f..512930b287 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); } }