diff options
author | terkhen <terkhen@openttd.org> | 2010-02-24 21:51:59 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-02-24 21:51:59 +0000 |
commit | 70b1bc5048cf67ab93daf6eb8fb053037c2c976f (patch) | |
tree | 9b1464fbc1f9261dad09f1284919ef50b07cc9c2 /src/ai/api/ai_road.cpp | |
parent | f7f08c586fb797e9a62f3f818f2fec929e016abe (diff) | |
download | openttd-70b1bc5048cf67ab93daf6eb8fb053037c2c976f.tar.xz |
(svn r19229) -Feature: Allow to build multiple road stops using drag and drop (Based on Wolf01 work)
Diffstat (limited to 'src/ai/api/ai_road.cpp')
-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 157a75e17..e486d3dc1 100644 --- a/src/ai/api/ai_road.cpp +++ b/src/ai/api/ai_road.cpp @@ -530,7 +530,7 @@ static bool NeighbourHasReachableRoad(::RoadTypes rts, TileIndex start_tile, Dia p2 |= ::RoadTypeToRoadTypes(AIObject::GetRoadType()) << 2; p2 |= entrance_dir << 6; p2 |= (AIStation::IsValidStation(station_id) ? station_id : INVALID_STATION) << 16; - return AIObject::DoCommand(tile, 0, p2, CMD_BUILD_ROAD_STOP); + return AIObject::DoCommand(tile, 1 | 1 << 8, p2, CMD_BUILD_ROAD_STOP); } /* static */ bool AIRoad::BuildRoadStation(TileIndex tile, TileIndex front, RoadVehicleType road_veh_type, StationID station_id) |