summaryrefslogtreecommitdiff
path: root/src/ai
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/ai
parent56f15b3544089c3d690644b0b4f6e88c65710d83 (diff)
downloadopenttd-ec627dedf884069a1cbca8ebf524d761e755493c.tar.xz
(svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/default/default.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index db9fcd141..5af37de10 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -2198,7 +2198,7 @@ static void AiBuildRailConstruct(Player *p)
int32 bridge_len = GetTunnelBridgeLength(t1, t2);
DiagDirection dir = (TileX(t1) == TileX(t2) ? DIAGDIR_SE : DIAGDIR_SW);
- Track track = AxisToTrack(DiagDirToAxis(dir));
+ Track track = DiagDirToDiagTrack(dir);
if (t2 < t1) dir = ReverseDiagDir(dir);