Loading

Paste #pnufelyg1

  1. static int CDECL StationRatingSorter(const Station * const *a, const Station * const *b)
  2. {
  3. //  GSortT(used_stations->Begin(), used_stations.Lenght(), );
  4.     const Station *sta = *a;
  5.     const Station *stb = *b;

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"

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

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

  1. Index: src/aircraft_cmd.cpp
  2. ===================================================================
  3. --- src/aircraft_cmd.cpp    (revision 27927)
  4. +++ src/aircraft_cmd.cpp    (working copy)
  5. @@ -634,6 +634,12 @@

Paste #pcsi29tuh

  1. /**
  2.  * Sets the new speed for an aircraft
  3.  * @param v The vehicle for which the speed should be obtained
  4.  * @param speed_limit The maximum speed the vehicle may have.
  5.  * @param hard_limit If true, the limit is directly enforced, otherwise the plane is slowed down gradually

Paste #pe46uito2

  1. diff -r 95b0092b4639 src/grfstrip.cpp
  2. --- a/src/grfstrip.cpp  Tue Jul 19 20:58:18 2016 +0200
  3. +++ b/src/grfstrip.cpp  Mon Oct 23 20:18:09 2017 +0200
  4. @@ -169,7 +169,7 @@
  5.             "GRFSTRIP " VERSION " - Copyright (C) 2009 by Remko Bijker\n"

Paste #pjasirl2o

  1. diff -r 95b0092b4639 src/grfstrip.cpp
  2. --- a/src/grfstrip.cpp  Tue Jul 19 20:58:18 2016 +0200
  3. +++ b/src/grfstrip.cpp  Mon Oct 23 20:16:34 2017 +0200
  4. @@ -169,7 +169,7 @@
  5.             "GRFSTRIP " VERSION " - Copyright (C) 2009 by Remko Bijker\n"

Paste #pfssuwhwo

  1.     random_switch (FEAT_TRAINS, FORWARD_SELF(0), box_car_pony_gen_1A_switch_colour_mapping) {
  2.         1: return base_sprite_2cc;
  3.         1: return base_sprite_2cc + 16 * company_colour1 + company_colour2;
  4.     }

Paste #p0tbgvfds

  1.     random_switch (FEAT_TRAINS, ${vehicle.location_of_random_bits_for_model_variant}, ${vehicle.id}_switch_colour_mapping) {
  2.         1: return base_sprite_2cc; <!--! no change -->
  3.         1: return base_sprite_2cc + 16 * company_colour1 + company_colour2; <!--! swap 1CC and 2CC -->
  4.     }

Paste #psg80lhdx

  1.     function BuildStations()
  2.     {
  3.         local done = false;
  4.         local pos = 1;

Paste #pthoahebo

  1. (train running costs with 'divisor * 2')
  2.  
  3. 1/1  -  £5,367/yr
  4. 1/2  -  £5,650/yr
  5. 1/3  -  £6,120/yr

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

  1. names = ["Pathways", "Pather", "Cheap Ways"];
  2. suffixes = ["Inc.", "Co.", "S.A.", "Corps"]
  3.  
  4. cityCargoClasses = [
  5.     AICargo.CargoClass.CC_PASSENGERS,

Find "outlet roads" in ci

  1. function TilesInCity(city)
  2. {
  3.     tiles = AITileList();
  4.     neighbors = AITileList();