summaryrefslogtreecommitdiff
path: root/src/yapf
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-14 18:31:21 +0000
committersmatz <smatz@openttd.org>2008-05-14 18:31:21 +0000
commitec627dedf884069a1cbca8ebf524d761e755493c (patch)
tree865f25008dfeacaa3e7b65aadc36c6076eb1c4b0 /src/yapf
parent56f15b3544089c3d690644b0b4f6e88c65710d83 (diff)
downloadopenttd-ec627dedf884069a1cbca8ebf524d761e755493c.tar.xz
(svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits
Diffstat (limited to 'src/yapf')
-rw-r--r--src/yapf/yapf_road.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yapf/yapf_road.cpp b/src/yapf/yapf_road.cpp
index a0ea6864f..8f775bc3c 100644
--- a/src/yapf/yapf_road.cpp
+++ b/src/yapf/yapf_road.cpp
@@ -88,7 +88,7 @@ public:
if (v->current_order.IsType(OT_GOTO_STATION) && tile == v->dest_tile) break;
// stop if we have just entered the depot
- if (IsRoadDepotTile(tile) && trackdir == DiagdirToDiagTrackdir(ReverseDiagDir(GetRoadDepotDirection(tile)))) {
+ if (IsRoadDepotTile(tile) && trackdir == DiagDirToDiagTrackdir(ReverseDiagDir(GetRoadDepotDirection(tile)))) {
// next time we will reverse and leave the depot
break;
}
@@ -264,7 +264,7 @@ public:
// handle special case - when next tile is destination tile
if (tile == v->dest_tile) {
// choose diagonal trackdir reachable from enterdir
- return (Trackdir)DiagdirToDiagTrackdir(enterdir);
+ return DiagDirToDiagTrackdir(enterdir);
}
// our source tile will be the next vehicle tile (should be the given one)
TileIndex src_tile = tile;