Loading

Paste #pgxdnm3kj

  1. /* ******************************************************************
  2.  * Definition of the industry tile, its callbacks, and graphics chain
  3.  * ******************************************************************/
  4.             spriteset(oil_rig_spriteset_0_0, "src/graphics/industries/groundtiles.png") {
  5.                     tmpl_ground_tile(360, 10)

Paste #pye2z1acs

  1. /**
  2.  * Check whether growing on a half-tile coast tile ends up blocking a water connection
  3.  *
  4.  * @param tile The target tile
  5.  * @return true if building here blocks a water connection

Paste #pol6ejtzl

  1. /**
  2.  * Check whether growing on a half-tile coast tile ends up blocking a water connection
  3.  *
  4.  * @param tile The target tile
  5.  * @return true if building here blocks a water connection

Paste #pvvikkhmh

  1. *Le Problems*
  2.  
  3. Devzone repos -> github
  4. Devzone issues -> github
  5. Devzone managing auth for newgrf eints -> ???

Paste #phrxiucsp

  1. 1. Core Game
  2.     1. what's the game
  3.     2. how to get started
  4.     3. where to learn more about gameplay
  5. 2. Extend

Paste #pizf1oyp4

  1.         local alltiles = AIMap.GetMapSize();
  2.         for (local tile = 0; tile < alltiles; tile++) {
  3.             AIAirport.GetNearestTown(AIBase.RandRange(alltiles), AIAirport.AT_INTERCON);
  4.         }

RoadAI 4 vs 5

  1. diff --git a/info.nut b/info.nut
  2. index e68a3cc..1f0b33c 100644
  3. --- a/info.nut
  4. +++ b/info.nut
  5. @@ -22,8 +22,8 @@

Paste #pwvjchy87

  1. local noise = AIAirport.GetNoiseLevelIncrease(tile, type);
  2. local allowed_noise = AITown.GetAllowedNoise(AIAirport.GetNearestTown(tile, type));
  3. local old_result = (noise != -1 && allowed_noise != -1 && noise <= allowed_noise);
  4. assert(old_result == AIAirport.IsNoiseLevelIncreaseAllowed(tile, type));

Paste #pciylxx8w

  1. import("Library.SCPLib", "SCPLib", 45);
  2. import("Library.SCPClient_CompanyValue", "SCPClient_CompanyValue", 1);
  3. //require("scp.nut");
  4.  
  5. class LuDiAIAfterFix extends AIController {

Paste #pmacpimxt

  1. class SCPClient_CompanyValueGS {
  2.  
  3.     /* Private members variables */
  4.     static COMMAND_SET = "Company Value GS";

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 #pwul3cvlf

  1. NWidget(NWID_HORIZONTAL, NC_EQUALSIZE),
  2.         NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_SC_TAKE), SetDataTip(STR_SCREENSHOT_SCREENSHOT, 0),
  3.         NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_SC_TAKE_ZOOMIN), SetDataTip(STR_SCREENSHOT_ZOOMIN_SCREENSHOT, 0),
  4.     EndContainer(),
  5.     NWidget(NWID_HORIZONTAL, NC_EQUALSIZE),

layers

  1. switch (FEAT_TRAINS,SELF, switch_hopper_wagon_layers, [
  2.  
  3.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 4 ? CB_FLAG_MORE_SPRITES  : 0) + PALETTE_USE_DEFAULT, 0x100),
  4.  
  5.   getbits(extra_callback_info1, 8, 8)

Paste #prkv7boyh

  1. Ricardo@FX-8150 MINGW64 /d/OpenTTD/OpenTTD GitHub/OpenTTD (EnsureNoShipFromDiagDirs)
  2. $ git fetch upstream
  3.  
  4. Ricardo@FX-8150 MINGW64 /d/OpenTTD/OpenTTD GitHub/OpenTTD (EnsureNoShipFromDiagDirs)
  5. $ git rebase upstream/master

layers recolour

  1.  
  2. switch (FEAT_TRAINS,SELF, switch_mglv_hopper_layers, [
  3.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 4 ? CB_FLAG_MORE_SPRITES  : 0) + PALETTE_USE_DEFAULT, 0x100),
  4.   getbits(extra_callback_info1, 8, 8)
  5.   ]){