Loading

Paste #pthkwwqir

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

  1. Best industry colors for "green" map, according to CIE2000:
  2. [215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 180, 204, 198, 165, 177, 64, 132, 70, 161, 211, 33, 142, 9, 191, 157, 45, 4, 189, 147, 167, 183, 186, 127, 116, 140, 171, 104, 35, 37, 12, 102, 213, 60, 194, 43, 133, 130, 6, 118, 255, 26, 214, 134, 203, 48, 69, 155, 62, 162, 41, 85, 111, 1, 126, 19, 209, 63, 168, 124, 65, 143, 17, 100, 166, 200, 24, 207, 190, 83, 55, 121, 61, 101, 128, 148, 56, 52, 68, 30, 99, 38, 49, 172, 77, 103, 163, 196, 164, 173, 44, 141, 115, 153, 152, 75, 57, 18, 20, 81, 28, 98, 187, 185, 79, 170, 135, 22, 106, 46, 181, 109, 205, 192, 47, 86, 29, 10, 7, 34, 178, 154, 184, 76, 1

Paste #phiasxlfi

  1. *** OpenTTD Crash Report ***
  2.  
  3. Crash at: Fri Apr  5 01:50:18 2019
  4. In game date: 1976-12-14 (72)

sadfsdafd

  1.  
  2. replacenew TUNNEL_UNDERLAY_tropic_grass_00                            (RAILTYPE_TUNNELS, "gfx/LAND_for_tunnels_x1-8bpp.png" ,0) { tunnel_underlay_x1(0,0,0,64  ) }
  3. alternative_sprites(TUNNEL_UNDERLAY_tropic_grass_00, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/LAND_for_tunnels_x1.png"        ) { tunnel_underlay_x1(0,0,0,64  ) }
  4. alternative_sprites(TUNNEL_UNDERLAY_tropic_grass_00, ZOOM_LEVEL_IN_4X, BIT_DEPTH_32BPP,  "gfx/LAND_for_tunnels_x4.png"        ) { tunnel_underlay_x4(0,0,0,64  ) }
  5. alternative_sprites(TUNNEL_UNDERLAY_tropic_grass_00, ZOOM_LEVEL_IN_4X, BIT_DEPTH_8BPP,   "gfx/LAND_for_tunnels_x4-8bpp.png"   ) { tunnel_underlay_x4(0,0,0,64  ) }
  6. replacenew TUNNEL_UNDE
  1. def combineResults(args, thread_count, palette_data):
  2.   thread_id = args[0]
  3.   combine_input_image = args[1]
  4.   x_start = args[2]
  5.   x_end = args[3]

RGB DESTROYER v1

  1. import math
  2. import time
  3. import datetime
  4. import os
  5. from os import remove

Paste #ppnnfttvy

  1. *** simple CB GS configuration ***
  2.  
  3. [game_scripts]
  4. "Simpleton's City Builder" = cityPopLimit=1,claimpop=300,dec0=100,dec1=100,dec10=2,dec2=100,dec5=5,dyngrowth=4,gamelength=24,goal=5000,goalprogress=1,morelogs=0,pop0=500,pop1=300,pop2=1000,req1=50,req10=10,req5=120,startpause=1,storage=4,townarea=0,xMapgen=1

Paste #pmtjm5zum

  1.     /* Check whether this industry provides its own station */
  2.     bool oil_rig = false;
  3.     TILE_AREA_LOOP(tile_cur, ind->location) {
  4.         if (IsTileType(tile_cur, MP_INDUSTRY) && GetIndustryGfx(tile_cur) == GFX_OILRIG_1) {
  5.             TileIndex other = tile_cur + TileDiffXY(0, -1);

code

  1. /* $Id$ */
  2.  
  3. /*
  4.  * This file is part of OpenTTD.
  5.  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

EdsgerAI info (no compile

  1. class EdsgerAI extends AIInfo
  2. {
  3.     function GetAuthor()      { return "Gustavo6046"; }
  4.     function GetName()        { return "Edsger Bus"; }
  5.     function GetDescription() { return "An AI that uses Edsger W. Dijkstra's algorithm a lot: https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm"; }

Paste #pp2vtpnsv

  1. Index: src/economy.cpp
  2. ===================================================================
  3. --- src/economy.cpp (revision 27964)
  4. +++ src/economy.cpp (working copy)
  5. @@ -294,7 +294,15 @@

Paste #p2pn4keww

  1. uint MoveGoodsToStation(CargoID type, uint amount, SourceType source_type, SourceID source_id, const StationList *all_stations)
  2. {
  3.     /* Return if nothing to do. Also the rounding below fails for 0. */
  4.     if (amount == 0) return 0;

Paste #prtavugk5

  1.         struct StationRating {
  2.             Station *st;
  3.             uint rating;
  4.         };

Paste #puwuelocc

  1. [difficulty]
  2. max_no_competitors = 2
  3.  
  4. [ai]
  5. ai_in_multiplayer = true

Paste #phdne9rqy

  1. /**
  2.  * Find the nearest hangar to v
  3.  * INVALID_STATION is returned, if the company does not have any suitable
  4.  * airports (like helipads only)
  5.  * @param v vehicle looking for a hangar