src/train_cmd.cpp
changeset 9224 93528d9cb96d
parent 9222 78f27b94fe76
child 9234 bfc9d27d3d0d
--- a/src/train_cmd.cpp	Wed May 14 18:27:39 2008 +0000
+++ b/src/train_cmd.cpp	Wed May 14 18:31:21 2008 +0000
@@ -1764,7 +1764,7 @@
 
 		if (d <= 0) {
 			leave->vehstatus &= ~VS_HIDDEN; // move it out of the depot
-			leave->u.rail.track = AxisToTrackBits(DiagDirToAxis(GetRailDepotDirection(leave->tile)));
+			leave->u.rail.track = TrackToTrackBits(GetRailDepotTrack(leave->tile));
 			for (int i = 0; i >= d; i--) TrainController(leave, NULL, false); // maybe move it, and maybe let another wagon leave
 		}
 	} else {