diff options
author | rubidium <rubidium@openttd.org> | 2010-01-15 18:22:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-15 18:22:57 +0000 |
commit | 55d1db5b2851c5b3357126adb720a4a91038b7dc (patch) | |
tree | 341fb85704f55c7e7679228fc9b20f642fdfc637 | |
parent | aff659b0b7c1908aa8fde99093d5e418fb03a888 (diff) | |
download | openttd-55d1db5b2851c5b3357126adb720a4a91038b7dc.tar.xz |
(svn r18811) -Fix (r18803): also swap the parameters for the AI API
-rw-r--r-- | src/ai/api/ai_road.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |