Loading

Paste #plo5egxsv

  1. switch(...., getbits(extra_callback_info1, 0, 8)) {
  2.   0: return (cargo1 << 8) + amount1;
  3.   1: return (cargo2 << 8) + amount2;
  4.  ...
  5.   return CB_RESULT_HOUSE_NO_MORE_PRODUCTION;
  6. }

Paste #pyxuf1a7i

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

  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.             DoCommand(tile, 0, 0, DC_EXEC | CommandFlagsToDCFlags(GetCommandFlags(CMD_BUILD_LOCK)), CMD_BUILD_LOCK);

Paste #prws9vuhz

  1. Index: src/autoreplace_cmd.cpp
  2. ===================================================================
  3. --- src/autoreplace_cmd.cpp (revision 27931)
  4. +++ src/autoreplace_cmd.cpp (working copy)
  5. @@ -78,11 +78,6 @@

Paste #p9hlizjtm

  1. Index: src/autoreplace_cmd.cpp
  2. ===================================================================
  3. --- src/autoreplace_cmd.cpp (revision 27930)
  4. +++ src/autoreplace_cmd.cpp (working copy)
  5. @@ -78,11 +78,6 @@

Paste #puhsjpjyc

  1. Index: src/autoreplace_cmd.cpp
  2. ===================================================================
  3. --- src/autoreplace_cmd.cpp (revision 27930)
  4. +++ src/autoreplace_cmd.cpp (working copy)
  5. @@ -79,8 +79,12 @@

Paste #plmhkfy3k

  1. static void CheckIfAircraftNeedsService(Aircraft *v)
  2. {
  3.     if (Company::Get(v->owner)->settings.vehicle.servint_aircraft == 0 || !v->NeedsAutomaticServicing()) return;
  4.     if (v->IsChainInDepot()) {
  5.         VehicleServiceInDepot(v);

Paste #pxkgvwdad

  1.             if (cur_dist != UINT_MAX && cur_dist > max_range) continue;
  2.             if (next_dist != UINT_MAX && next_dist > max_range) continue;

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

Paste #p13ckykxj

  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

dependent random_switch

  1. random_switch (FEAT_TRAINS, SELF, monowtf2_power, bitmask(TRIGGER_VEHICLE_SERVICE, TRIGGER_VEHICLE_ANY_LOAD, TRIGGER_VEHICLE_UNLOAD_ALL )){
  2. 1: 12000;
  3. 1: 15000;
  4. 1: 18000;
  5. }

Paste #puwuelocc

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

Paste #pb2hvgyfg

  1. static void CheckIfAircraftNeedsService(Aircraft *v)
  2. {
  3.     if (Company::Get(v->owner)->settings.vehicle.servint_aircraft == 0 || !v->NeedsAutomaticServicing()) return;
  4.     if (v->IsChainInDepot()) {
  5.         VehicleServiceInDepot(v);

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