Loading

Paste #pesaw5ntw

  1. OpenTTD.OpenTTD(master)$ gcc -v
  2. Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1
  3. Apple LLVM version 9.1.0 (clang-902.0.39.2)
  4. Target: x86_64-apple-darwin17.7.0
  5. Thread model: posix
  6. InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Paste #pc8x0pggn

  1. checking awk... awk
  2. detecting OS... OSX
  3. checking build system type... x86_64-apple-darwin17.7.0
  4. checking host system type... x86_64-apple-darwin17.7.0
  5. checking universal build... no

Paste #puwrfr4h7

  1. function Road::_IsSlopedRoad(start, middle, end)
  2. {
  3.     local NW = 0; //Set to true if we want to build a road to / from the north-west
  4.     local NE = 0; //Set to true if we want to build a road to / from the north-east
  5.     local SW = 0; //Set to true if we want to build a road to / from the south-west

Paste #pliwj7tdq

  1.         if (!AIRoad.AreRoadTilesConnected(prev_tile, new_tile)) {
  2.             local isOmniInfra = AIRoad.IsRoadTile(new_tile) || AIBridge.IsBridgeTile(new_tile) || AITunnel.IsTunnelTile(new_tile);
  3.             local isOwnedInfra = AIRoad.IsRoadStationTile(new_tile) || AIRoad.IsRoadDepotTile(new_tile);
  4.             local isSelfOwnedInfra = isOwnedInfra && AITile.GetOwner(new_tile) == AICompany.ResolveCompanyID(AICompany.COMPANY_SELF);
  5.             local multiplier = (isOmniInfra || isSelfOwnedInfra) ? 2 : 1;

Paste #pzowtug1e

  1. if (!AIRoad.AreRoadTilesConnected(prev_tile, new_tile)) {
  2.     bool isOmniInfra = AIRoad.IsRoadTile(new_tile) || AIBridge.IsBridgeTile(new_tile) || AITunnel.IsTunnelTile(new_tile);
  3.     bool isOwnedInfra = AIRoad.IsRoadStationTile(new_tile) || AIRoad.IsRoadDepotTile(new_tile);
  4.     bool isSelfOwnedInfra = isOwnedInfra && AITile.GetOwner(new_tile) == AICompany.ResolveCompanyID(AICompany.COMPANY_SELF);
  5.     int multiplier = (isOmniInfra || isSelfOwnedInfra) ? 2 : 1;

Paste #pf3etzgbs

  1.         if (!AIRoad.AreRoadTilesConnected(prev_tile, new_tile)) {
  2.             if (AIRoad.IsRoadTile(new_tile) || AIBridge.IsBridgeTile(new_tile) || AITunnel.IsTunnelTile(new_tile) ||
  3.                     (AIRoad.IsRoadStationTile(new_tile) || AIRoad.IsRoadDepotTile(new_tile)) && AITile.GetOwner(new_tile) == AICompany.ResolveCompanyID(AICompany.COMPANY_SELF)) {
  4.                 cost += self._cost_no_existing_road;
  5.             } else {

Paste #puwkoudkt

  1.         if (!AIRoad.AreRoadTilesConnected(prev_tile, new_tile)) {
  2.             if (!(AIRoad.IsRoadTile(new_tile) || AIBridge.IsBridgeTile(new_tile) || AITunnel.IsTunnelTile(new_tile) ||
  3.                     (AIRoad.IsRoadStationTile(new_tile) || AIRoad.IsRoadDepotTile(new_tile)) && AITile.GetOwner(new_tile) == AICompany.ResolveCompanyID(AICompany.COMPANY_SELF))) {
  4.                 cost += self._cost_no_existing_road * 2;
  5.             } else {

Paste #pvhz8qahw

  1.         if (!AIRoad.AreRoadTilesConnected(prev_tile, new_tile)) {
  2.             cost += self._cost_no_existing_road * 2;
  3.             if (AIRoad.IsRoadTile(new_tile) || AIBridge.IsBridgeTile(new_tile) || AITunnel.IsTunnelTile(new_tile) ||
  4.                     (AIRoad.IsRoadStationTile(new_tile) || AIRoad.IsRoadDepotTile(new_tile)) && AITile.GetOwner(new_tile) == AICompany.ResolveCompanyID(AICompany.COMPANY_SELF)) {
  5.                 cost -= self._cost_no_existing_road;

Paste #pbdz0s7v8

  1. function Road::_CostHelper(self, prev_tile, new_tile, coast_cost_only = null)
  2. {
  3.     local cost = 0;
  4.  
  5.     if (coast_cost_only != true) {

Paste #pivfk1xw7

  1. function Road::_Cost(self, path, new_tile, new_direction)
  2. {
  3.     /* path == null means this is the first node of a path, so the cost is 0. */
  4.     if (path == null) return 0;

Paste #pzkccdaam

  1. Severity    Code    Description Project File    Line    Suppression State   Detail Description
  2. Error (active)      more than one operator "*" matches these operands:  openttd d:\OpenTTD\OpenTTD-master\src\script\api\script_airport.cpp 171                 built-in operator "arithmetic * arithmetic"
  3.             function template "OverflowSafeInt<T, T_MAX, T_MIN> operator*<T,T_MAX,T_MIN>(int64 a, OverflowSafeInt<T, T_MAX, T_MIN> b)"
  4.             function template "OverflowSafeInt<T, T_MAX, T_MIN> operator*<T,T_MAX,T_MIN>(int a, OverflowSafeInt<T, T_MAX, T_MIN> b)"
  5.             function template "OverflowSafeInt<T, T_MAX, T_MIN> operator*<T,T_MAX,T_MIN>(uint a, OverflowSafeInt<T, T_MAX, T_MIN> b

Paste #pjjkhttos

  1.     function findRoadTileDepot(tile) {
  2.         if(!AIRoad.IsRoadTile(tile)) {
  3.             return null;
  4.         }

Paste #pdvlasfad

  1. class LuDiAIAfterFix extends AIController {
  2.     MAX_TOWN_VEHICLES = AIGameSettings.GetValue("max_roadveh");
  3.     MIN_DISTANCE = 40;
  4.     MAX_DISTANCE = 115;
  5.     MAX_DISTANCE_INCREASE = 1.2;

Paste #p0lthy3jn

  1.                 local adjacentStationId = checkAdjacentStation(tile, a);
  2.                 local nearest_town;
  3.                 if (adjacentStationId == AIStation.STATION_NEW) {
  4.                     nearest_town = AITile.GetClosestTown(tile);
  5.                     if (nearest_town != town) continue;

Paste #pswaqpejg

  1.     function buildTownStation(town, cargoClass, stationTile, otherTown) {
  2.         local stationId = (stationTile == null) ?  AIStation.STATION_NEW : AIStation.GetStationID(stationTile);
  3.         local vehicleType = (cargoClass == AICargo.CC_MAIL) ? AIRoad.ROADVEHTYPE_TRUCK : AIRoad.ROADVEHTYPE_BUS;
  4. //      local max_spread = AIController.GetSetting("station_spread") && AIGameSettings.GetValue("distant_join_stations");