(svn r19229) -Feature: Allow to build multiple road stops using drag and drop (Based on Wolf01 work)

This commit is contained in:
terkhen
2010-02-24 21:51:59 +00:00
parent 381ec11328
commit f7e91fa7d2
4 changed files with 140 additions and 82 deletions

View File

@@ -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)