From ec627dedf884069a1cbca8ebf524d761e755493c Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 14 May 2008 18:31:21 +0000 Subject: (svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits --- src/ai/default/default.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') 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); -- cgit v1.2.3-70-g09d2