Loading

Paste #pxyftsh2y

  1.     /* Create additional river tiles around possible lock locations to connect them. */
  2.     for (uint tile = 0; tile != MapSize(); tile++) {
  3.         if (IsValidTile(tile) && IsTileType(tile, MP_WATER) && IsRiver(tile) && IsInclinedSlope(GetTileSlope(tile))) {
  4.  
  5.             Slope slope = GetTileSlope(tile);

Paste #phizsmaeo

  1. Index: src/industry_cmd.cpp
  2. ===================================================================
  3. --- src/industry_cmd.cpp    (revision 27931)
  4. +++ src/industry_cmd.cpp    (working copy)
  5. @@ -491,7 +491,12 @@

FIRS cargo ids

  1. 0 Passengers
  2. 1 Alcohol
  3. 2 Mail
  4. 3 Chemicals
  5. 4 Clay

Paste #penqudfnq

  1.     /* Build the airports for real */
  2.     local last_cost = AIAccounting();
  3.     if (AITestMode() && AIAirport.BuildAirport(airport1_location, airport1_type, airport1_stationId)) {
  4.         if (HasMoney(last_cost.GetCosts())) GetMoney(last_cost.GetCosts());
  5.     }

Paste #ptizrj53b

  1. Index: src/depot_gui.cpp
  2. ===================================================================
  3. --- src/depot_gui.cpp   (revision 27935)
  4. +++ src/depot_gui.cpp   (working copy)
  5. @@ -383,12 +383,13 @@

Paste #pqdqvoowf

  1. switch (FEAT_ROADVEHS, SELF, switch_e0,
  2.   position_in_consist > 0 ? 16 : 0) + getbits(random_bits, 4, 1) * 4 + getbits(extra_callback_info1, 8, 8)
  3. ) {
  4.  0: spriteset_e0_front_style0_stack0;
  5.  1: spriteset_e0_front_style0_stack1;

Paste #pgov1p9hu

  1. Already available:
  2. Var 62 / other_veh_xyz_offset: Give positional offset from current vehicle to n-th following vehicle.
  3. This can be used to provide diffeent orientations for a vehicle for all combinations of x, y, and z differences.
  4.  
  5. New OTTD feature: "distribute sprite over multiple articulated parts"

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

Paste #phnhf0p2b

  1. bool editable = _game_mode == GM_MENU ||
  2.            _game_mode == GM_NORMAL && (IsConsideredDead(this->slot) || (config_item.flags & SCRIPTCONFIG_INGAME) != 0) ||
  3. IsConsideredDead(this->slot) && (this->slot == OWNER_DEITY ? Game::GetInstance() == NULL : !IsValidAiID(this->slot) || Company::Get(this->slot)->ai_instance == NULL);

Paste #pecztjz1v

  1. openttd-trunk(master)$ make run -j13
  2. make[1]: Nothing to be done for `all'.
  3. make[1]: Nothing to be done for `all'.
  4. make[1]: Nothing to be done for `all'.
  5. make[1]: Nothing to be done for `all'.

Paste #p8xfs2y7g

  1. ifeq (/usr/local/bin/dot/usr/local/bin/gvpr,/usr/local/bin/gvpr/usr/local/bin/dot)
  2. /bin/sh: -c: line 0: syntax error near unexpected token `/usr/local/bin/dot/usr/local/bin/gvpr,/usr/local/bin/gvpr/usr/local/bin/dot'
  3. /bin/sh: -c: line 0: `ifeq (/usr/local/bin/dot/usr/local/bin/gvpr,/usr/local/bin/gvpr/usr/local/bin/dot)'

nvidia issue with last up

  1. Updates were installed last night unsupervised (agreeing to install updates when shutting down system). This morning the graphics card and monitors do not seem to be recognized anymore. The relevant update (the only other one installed at that time affects virtualbox, sorry for German locale):
  2.  
  3. planetmaker@aeolusmaximus:~$ sudo dnf history info 88
  4. Transaktions-ID : 88
  5. Anfangszeit : Sat May 20 01:05:13 2017

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

  1. class MyNewGS extends GSController
  2. {
  3.  
  4.   function Start()
  5.   {

Paste #ph2fsvnnz

  1. Index: src/aircraft.h
  2. ===================================================================
  3. --- src/aircraft.h  (revision 27795)
  4. +++ src/aircraft.h  (working copy)
  5. @@ -73,6 +73,7 @@