Loading

Paste #pt1wnmoah

  1. $ '/d/OpenTTD/OpenTTD GitHub/OpenTTD/src/script/api/squirrel_export.sh'
  2. Generating for API 'ai' ...
  3. /d/OpenTTD: /d/OpenTTD: Is a directory
  4. Generating for API 'game' ...
  5. /d/OpenTTD: /d/OpenTTD: Is a directory

Paste #pyrvrjpwp

  1.     modified:   bin/baseset/no_sound.obs
  2.     modified:   bin/baseset/orig_dos.obg
  3.     modified:   bin/baseset/orig_dos.obs
  4.     modified:   bin/baseset/orig_dos_de.obg
  5.     modified:   bin/baseset/orig_win.obg

https://imgur.com/wQuDOi5

  1. static bool GrowingOnWateredTile(TileIndex tile)
  2. {
  3.     TrackBits water_track = TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_WATER, 0));
  4.     if (water_track != TRACK_BIT_NONE) {
  5.         if (water_track == TRACK_BIT_UPPER || water_track == TRACK_BIT_LOWER || water_track == TRACK_BIT_LEFT || water_track == TRACK_BIT_RIGHT) {

https://imgur.com/wQuDOi5

  1. static bool GrowingOnWateredTile(TileIndex tile)
  2. {
  3.     TrackBits water_track = TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_WATER, 0));
  4.     if (water_track != TRACK_BIT_NONE) {
  5.         if (water_track == TRACK_BIT_UPPER || water_track == TRACK_BIT_LOWER || water_track == TRACK_BIT_LEFT || water_track == TRACK_BIT_RIGHT) {

delaunay.nut

  1. /**
  2.  * Usage:
  3.  *   towns = GSTownList();
  4.  *   towns.Valuate(GSTown.GetLocation);
  5.  *   neighbours = Delaunay(towns);

Paste #pwpmcjp7l

  1. diff --git a/src/script/api/squirrel_export.sh b/src/script/api/squirrel_export.sh
  2. index 92bd434b93..9a4d9ce7cf 100755
  3. --- a/src/script/api/squirrel_export.sh
  4. +++ b/src/script/api/squirrel_export.sh
  5. @@ -50,6 +50,7 @@ if [ -z "$1" ]; then

Paste #px9lcajoc

  1. ~/ottd/OpenTTD-master$ git fetch
  2. remote: Enumerating objects: 538, done.
  3. remote: Counting objects: 100% (538/538), done.
  4. remote: Compressing objects: 100% (38/38), done.
  5. remote: Total 653 (delta 506), reused 530 (delta 500), pack-reused 115

https://imgur.com/wQuDOi5

  1. struct { TileIndexDiff opposite_tile, next_tile_1, next_tile_2; TrackBits opposite_track, next_track_1, next_track_2; } table[] = {
  2.     { TileDiffXY(-1,  1), TileDiffXY( 0,  1), TileDiffXY(-1,  0), TRACK_BIT_LEFT,  _settings_game.pf.forbid_90_deg ? TRACK_BIT_X | TRACK_BIT_RIGHT : TRACK_BIT_3WAY_NE, _settings_game.pf.forbid_90_deg ? TRACK_BIT_Y | TRACK_BIT_RIGHT : TRACK_BIT_3WAY_SE },
  3.     { TileDiffXY(-1, -1), TileDiffXY(-1,  0), TileDiffXY( 0, -1), TRACK_BIT_LOWER, _settings_game.pf.forbid_90_deg ? TRACK_BIT_Y | TRACK_BIT_UPPER : TRACK_BIT_3WAY_NW, _settings_game.pf.forbid_90_deg ? TRACK_BIT_X | TRACK_BIT_UPPER : TRACK_BIT_3WAY_NE },
  4.     { TileDiffXY( 1, -1), TileDiffXY( 0, -1)

Paste #palq5u0uf

  1.         local vehicleList = this.vehicleList();
  2.         local unitnumberList = AIList();
  3.         for (local vehicle = vehicleList.Begin(); !VehicleList.IsEnd(); vehicle = vehicleList.Next()) {
  4.             if (AIVehicle.IsValidVehicle(vehicle) && AIVehicle.GetVehicleType(vehicle) == AIVehicle.VT_ROAD) {
  5.                 local unitnumber = AIVehicle.GetUnitNumber(vehicle);

Paste #pwqa05nv2

  1.   Display-issue-with-STR_NEWS_PLANE_USES_TOO_SHORT_RUNWAY              5ed39d551 [origin/Display-issue-with-STR_NEWS_PLANE_USES_TOO_SHORT_RUNWAY: gone] Fix: Displaying issue with the message about airplanes heading to airports with short runways
  2.   EnsureNoShipFromDiagDirs                                             9a4d80383 [origin/EnsureNoShipFromDiagDirs] Add: EnsureNoShipFromDiagDirs
  3.   ScriptBridge-GetName                                                 f1efe276a [origin/ScriptBridge-GetName] Change: AI/GS ScriptBridge::GetName takes one extra parameter to refer the vehicle type
  4.   aircraft-hangar-issues                                               63c83d4af [origi

Paste #pvinp1p38

  1. case (current slope) {
  2.   N: offsetX=-1; offsetY=-1; break;
  3.   W: offsetX= 1; offsetY=-1; break;
  4.   S: offsetX= 1; offsetY= 1; break;
  5.   E: offsetX=-1; offsetY= 1; break;

Paste #pmrjva0fa

  1. /**
  2.  * Returns the direction of a corner in relation to the centre of the tile
  3.  *
  4.  * @param corner A #Corner.
  5.  * @return The direction the corner is in relation to the center of the tile. Or INVALID_DIR if the corner is not valid.

Paste #pg5gscoqu

  1.         local vehicleList = this.vehicleList();
  2.         local unitnumberList = AIList();
  3.         for (local vehicle = vehicleList.Begin(); !vehicleList.IsEnd(); vehicle = vehicleList.Next()) {
  4.             if (AIVehicle.IsValidVehicle(vehicle) && AIVehicle.GetVehicleType(vehicle) == AIVehicle.VT_ROAD) {
  5.                 local unitnumber = AIVehicle.GetUnitNumber(vehicle);

Paste #pbq3ammjp

  1. function Utils::GetVehicleID(vehicle_unitnumber, vehicle_type)
  2. {
  3.     if (!(vehicle_unitnumber > 0 && vehicle_unitnumber <= 0xFFFF)) return AIVehicle.VEHICLE_INVALID;
  4.     if (!(vehicle_type >= AIVehicle.VT_RAIL && vehicle_type <= AIVehicle.VT_AIR)) return AIVehicle.VEHICLE_INVALID;

https://imgur.com/wQuDOi5

  1. https://imgur.com/wQuDOi5
  2.  
  3. static bool GrowingOnWateredTile(TileIndex tile)
  4. {
  5.     TrackBits water_track = TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_WATER, 0));