diff options
author | smatz <smatz@openttd.org> | 2008-05-14 18:31:21 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-14 18:31:21 +0000 |
commit | ec627dedf884069a1cbca8ebf524d761e755493c (patch) | |
tree | 865f25008dfeacaa3e7b65aadc36c6076eb1c4b0 /src/train_cmd.cpp | |
parent | 56f15b3544089c3d690644b0b4f6e88c65710d83 (diff) | |
download | openttd-ec627dedf884069a1cbca8ebf524d761e755493c.tar.xz |
(svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index c6bc5d135..e788a16de 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1764,7 +1764,7 @@ static void AdvanceWagonsAfterSwap(Vehicle *v) 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 { |