Loading

Paste #p02mxsejk

  1. src/saveload/saveload.h
  2. 141:    SLE_VAR_STRB  = 10 << 4, ///< string (with pre-allocated buffer)
  3. 142:    SLE_VAR_STRBQ = 11 << 4, ///< string enclosed in quotes (with pre-allocated buffer)
  4. 143:    SLE_VAR_STR   = 12 << 4, ///< string pointer
  5. 144:    SLE_VAR_STRQ  = 13 << 4, ///< string pointer enclosed in quotes

Paste #pfzbrepaq

  1. static void ChangeTileOwner_Industry(TileIndex tile, Owner old_owner, Owner new_owner)
  2. {
  3.     /* If the founder merges, the industry was created by the merged company */
  4.     Industry *i = Industry::GetByTile(tile);
  5.     if (i->founder == old_owner) i->founder = (new_owner == INVALID_OWNER) ? OWNER_NONE : new_owner;

Paste #pikzlfahy

  1. - Feature: increase cargo ID range from 32 to 64, to support 64 cargos in OpenTTD 11ab3c4ea2f6a6d29efda8c9ba2af04194621ea7
  2. - Change: Support more DCxx strings for OpenTTD r27769.
  3. - Change: Support more DCxx strings for OpenTTD r27769.
  4. - Add: Properties for vehicle sprite stack.
  5. - Add: CB_FLAG_MORE_SPRITES, PALETTE_IDENTITY

FindClosestReachableShipD

  1. Index: src/pathfinder/yapf/yapf.h
  2. ===================================================================
  3. --- src/pathfinder/yapf/yapf.h  (revision 27829)
  4. +++ src/pathfinder/yapf/yapf.h  (working copy)
  5. @@ -97,4 +97,14 @@

opf find depot

  1. FindDepotData OPFShipFindNearestDepot(const Ship *v, int max_distance)
  2. {
  3.     FindDepotData fdd;
  4.  
  5.     Trackdir trackdir = v->GetVehicleTrackdir();

Paste #pdle3nc1a

  1. switch (FEAT_ROADVEHS, SELF, mk3_open_cargo_switch, cargo_classes & BITMASK(CC_LIQUID, CC_BULK)) {   //switch for reducing capacity for some cargos
  2.         BITMASK(CC_LIQUID): return 10; //barrels hold less than tanker
  3.         BITMASK(CC_BULK): return 7; //can't fill bed with as much bulk as a hopper
  4.         default: return CB_FAILED;
  5. }

Paste #pykz1xpdb

  1.     def get_engine_cost_points(self):
  2.         # Up to 40 points for power. 1 point per 50hp
  3.         # Power is therefore capped at 2000hp by design, this isn't a hard limit, but raise a warning
  4.         if self.power > 2000:
  5.             utils.echo_message("Consist " + self.id + " has power > 2000hp, which is too much")

Paste #pjqby5fvc

  1.     switch (FEAT_TRAINS, SELF, box_car_antelope_gen_1_1_switch_cargo_capacity_by_cargo_1, cargo_classes & bitmask(CC_PASSENGERS, CC_MAIL, CC_ARMOURED)) {
  2.         bitmask(CC_PASSENGERS): return 0;
  3.         bitmask(CC_MAIL): return 110;
  4.         bitmask(CC_ARMOURED): return 110;
  5.         return 55;
  6.     }

Paste #pzafzgnpd

  1. Index: src/fios.h
  2. ===================================================================
  3. --- src/fios.h  (revision 27726)
  4. +++ src/fios.h  (working copy)
  5. @@ -81,10 +81,9 @@

Paste #p84xottja

  1. diff --git a/src/road.cpp b/src/road.cpp
  2. index 399971c..7205bc1 100644
  3. --- a/src/road.cpp
  4. +++ b/src/road.cpp
  5. @@ -247,3 +247,33 @@ bool RoadTypeIdentifier::UnpackIfValid(uint32 data)

Paste #pfkn8wd4b

  1. Default industry:
  2.   Requires:
  3.     Livestock
  4.     Grain

Paste #pzdjy2zkb

  1. diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
  2. index 014884c..6437f23 100644
  3. --- a/src/airport_gui.cpp
  4. +++ b/src/airport_gui.cpp
  5. @@ -91,7 +91,7 @@ struct BuildAirToolbarWindow : Window {

Paste #psufuz15j

  1.             /* The tile owner of LOCK_PART_LOWER and LOCK_PART_UPPER was either
  2.              * the owner of the water or the owner of the lock. The tile owner of
  3.              * LOCK_PART_MIDDLE was the real owner of the lock. */
  4.             if (IsTileType(t, MP_WATER) && IsLock(t)) {
  5.                 if (GetWaterClass(t) == WATER_CLASS_CANAL) {

Paste #pfyqwplu1

  1. /**
  2.  * Make a lock section.
  3.  * @param t Tile to place the water lock section.
  4.  * @param lock_owner Owner of the lock.
  5.  * @param canal_owner Owner of the canal (only set if it's placed on canal).

Paste #pt0dkgvti

  1. search: (.*alternative_sprites.*ZOOM_LEVEL_IN_4X.*)BIT_DEPTH_32BPP(.*)_0000\.png(.*)
  2. replace: &\n\1BIT_DEPTH_8BPP\2_8bpp.png\3