Loading

Paste #pj8xtnxkg

  1. class MyTest extends AIController {
  2.   oil = false;
  3.   oilFleet = [];
  4.   myRigs = AIList();
  5.   function Start();

Paste #pzmhrek25

  1. Trackdir                        Direction
  2.     TRACKDIR_X_NE     =  0,         DIR_NE = 1,
  3.     TRACKDIR_Y_SE     =  1,         DIR_SE = 3,
  4.     TRACKDIR_UPPER_E  =  2,         DIR_E  = 2,
  5.     TRACKDIR_LOWER_E  =  3,         DIR_E  = 2,

Paste #pbyx4naaq

  1. # Various needed programs
  2. HG= hg
  3. PYTHON3 = python3
  4. SED = sed
  5. ZIP = zip

Paste #ptqwpdna7

  1.  
  2. switch (FEAT_TRAINS, SELF, box_car_antelope_gen_1_1_switch_cargo_capacity, cargo_classes & bitmask(CC_MAIL)) {
  3.     bitmask(CC_MAIL): return 110;
  4.     return 55;
  5. }

Paste #psetauyml

  1. switch(FEAT_TRAINS, SELF, switch_vehicle_part, [
  2.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < NNN ? CB_FLAG_MORE_SPRITES : 0) | PALETTE_USE_DEFAULT, 0x100),
  3.   getbits(extra_callback_info1, 8, 8)
  4. ]) {
  5.   0: vehicle_part0;

Paste #piht1yn6k

  1. // define the newgrf
  2. grf {
  3.     grfid: "\97\87\EA\FE";
  4.     name: string(STR_GRF_NAME);
  5.     desc: string(STR_GRF_DESCRIPTION);

Paste #pdk6cftpp

  1. Index: src/train_cmd.cpp
  2. ===================================================================
  3. --- src/train_cmd.cpp   (revision 27760)
  4. +++ src/train_cmd.cpp   (working copy)
  5. @@ -3901,11 +3901,21 @@

Paste #pknkojrl2

  1. Sulfur
  2. Clay
  3. Engineering Supplies
  4. Farm Supplies
  5. Food

Paste #pvr6tv039

  1. Index: src/engine.cpp
  2. ===================================================================
  3. --- src/engine.cpp  (revision 27699)
  4. +++ src/engine.cpp  (working copy)
  5. @@ -48,11 +48,6 @@

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

  1. /**
  2.  * Build a ship depot.
  3.  * @param tile tile where ship depot is built
  4.  * @param flags type of operation
  5.  * @param p1 bit 0 depot orientation (Axis)

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

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

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

  1. diff --git a/src/road_map.h b/src/road_map.h
  2. index ca233ad..e456466 100644
  3. --- a/src/road_map.h
  4. +++ b/src/road_map.h
  5. @@ -159,38 +159,6 @@ static inline void SetRoadBits(TileIndex t, RoadBits r, RoadType rt)