(svn r2058) -Fix: hopefully this fixes the reverse-train-in-depot-bugs (plural)
authortruelight
Fri, 25 Mar 2005 12:07:26 +0000
changeset 1554 c0b2287254f4
parent 1553 4976359e2bf9
child 1555 c7e5bb32f536
(svn r2058) -Fix: hopefully this fixes the reverse-train-in-depot-bugs (plural)
train_cmd.c
--- a/train_cmd.c	Fri Mar 25 11:32:58 2005 +0000
+++ b/train_cmd.c	Fri Mar 25 12:07:26 2005 +0000
@@ -1086,9 +1086,14 @@
 		/* 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);
 	}
 }