summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_road.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-02-24 21:45:23 +0000
committerterkhen <terkhen@openttd.org>2010-02-24 21:45:23 +0000
commit524a10b3754e4e393293d6e1fa17cfb42eac1590 (patch)
tree25156badef4a135cc71248517ed37b8a88d28ad1 /src/ai/api/ai_road.cpp
parent44e5cb41e76009d388a96b73118622599ff7d736 (diff)
downloadopenttd-524a10b3754e4e393293d6e1fa17cfb42eac1590.tar.xz
(svn r19227) -Codechange: Reorganization of parameters at CmdBuildRoadStop.
Diffstat (limited to 'src/ai/api/ai_road.cpp')
-rw-r--r--src/ai/api/ai_road.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ai/api/ai_road.cpp b/src/ai/api/ai_road.cpp
index 24789bcf1..157a75e17 100644
--- a/src/ai/api/ai_road.cpp
+++ b/src/ai/api/ai_road.cpp
@@ -528,8 +528,9 @@ static bool NeighbourHasReachableRoad(::RoadTypes rts, TileIndex start_tile, Dia
p2 |= drive_through ? 2 : 0;
p2 |= road_veh_type == ROADVEHTYPE_TRUCK ? 1 : 0;
p2 |= ::RoadTypeToRoadTypes(AIObject::GetRoadType()) << 2;
+ p2 |= entrance_dir << 6;
p2 |= (AIStation::IsValidStation(station_id) ? station_id : INVALID_STATION) << 16;
- return AIObject::DoCommand(tile, entrance_dir, p2, CMD_BUILD_ROAD_STOP);
+ return AIObject::DoCommand(tile, 0, p2, CMD_BUILD_ROAD_STOP);
}
/* static */ bool AIRoad::BuildRoadStation(TileIndex tile, TileIndex front, RoadVehicleType road_veh_type, StationID station_id)