From 55d1db5b2851c5b3357126adb720a4a91038b7dc Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 15 Jan 2010 18:22:57 +0000 Subject: (svn r18811) -Fix (r18803): also swap the parameters for the AI API --- src/ai/api/ai_road.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/api') diff --git a/src/ai/api/ai_road.cpp b/src/ai/api/ai_road.cpp index c43eb64ec..1621e03ec 100644 --- a/src/ai/api/ai_road.cpp +++ b/src/ai/api/ai_road.cpp @@ -471,7 +471,7 @@ static bool NeighbourHasReachableRoad(::RoadTypes rts, TileIndex start_tile, Dia EnforcePrecondition(false, !one_way || AIObject::GetRoadType() == ::ROADTYPE_ROAD); EnforcePrecondition(false, IsRoadTypeAvailable(GetCurrentRoadType())); - return AIObject::DoCommand(end, start, (::TileY(start) != ::TileY(end) ? 4 : 0) | (((start < end) == !full) ? 1 : 2) | (AIObject::GetRoadType() << 3) | ((one_way ? 1 : 0) << 5), CMD_BUILD_LONG_ROAD); + return AIObject::DoCommand(start, end, (::TileY(start) != ::TileY(end) ? 4 : 0) | (((start < end) == !full) ? 1 : 2) | (AIObject::GetRoadType() << 3) | ((one_way ? 1 : 0) << 5), CMD_BUILD_LONG_ROAD); } /* static */ bool AIRoad::BuildRoad(TileIndex start, TileIndex end) -- cgit v1.2.3-70-g09d2