Loading

Paste #pqo1srqxj

  1. static TreeType GetRandomTreeType(TileIndex tile, uint seed)
  2. {
  3.     uint8 th = TileHeight(tile);
  4.     uint limited_seed = seed / 16;
  5.     uint8 no_trees_height = _settings_game.game_creation.no_trees_height - limited_seed;

Paste #pwwa4fqnb

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

Paste #p9fb2bmxh

  1. Index: src/station_cmd.cpp
  2. ===================================================================
  3. --- src/station_cmd.cpp (revision 27653)
  4. +++ src/station_cmd.cpp (working copy)
  5. @@ -12,6 +12,7 @@

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

Paste #pybnluwuo

  1. nmlc ERROR: nmlc: An internal error has occurred:
  2. nmlc-version: v6133M:5ec05bde6098 from 2016-10-16
  3. Error:    (TypeError) "Can't convert 'int' object to str implicitly".
  4. Command:  ['../../tools/nml/nmlc', '--lang-dir=lang', 'generated/firs.nml']
  5. Location: File "/Users/andy/Documents/OTTD_graphics/tools/nml/nml/grfstrings.py", line 645, in parse_string

Paste #pvn1rcd5d

  1. diff --git a/src/economy_type.h b/src/economy_type.h
  2. index 7e7a572..27982a3 100644
  3. --- a/src/economy_type.h
  4. +++ b/src/economy_type.h
  5. @@ -111,6 +111,7 @@ enum Price {

Paste #pwmbeu9w0

  1. /**
  2.  * Make a ship depot section.
  3.  * @param t    Tile to place the ship depot section.
  4.  * @param owner_depot Owner of the depot.
  5.  * @param owner_canal Owner of the canal (only set if it's placed on canal).

Paste #p6z7gacvt

  1.             Slope tileh_end_aqueduct = GetTileSlope(tile_end);
  2.             if (tileh_end_aqueduct != ComplementSlope(tileh_start)) {
  3.                 switch (tileh_start) {
  4.                     case SLOPE_NE:
  5.                         switch (tileh_end_aqueduct) {

opf find depot

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

Paste #p2fjj0a2y

  1. commit cb6ba38d1367b0edbdb1662a57d3e9425e7316ed
  2. Author: frosch <frosch@openttd.org>
  3. Date:   Sun Oct 30 13:52:45 2016 +0100
  4.  
  5.     -Add: Drawing of road/tram with overlays.

Paste #piwlouxms

  1. [STORE_TEMP(string(STR_EXTRA_METAL_FOUNDRY) | string(STR_EXTRA_TEXT_SECONDARY_CARGO_SUBSTR_TWO_INPUTS) << 16, 256),STORE_TEMP(string(STR_EXTRA_TEXT_SECONDARY_CARGO_SUBSTR_DETAIL) | GOOD << 16, 257), STORE_TEMP(6 | STEL << 16, 258), STORE_TEMP(8 | string(STR_EXTRA_TEXT_SECONDARY_CARGO_SUBSTR_DETAIL) << 16, 259), STORE_TEMP(GOOD | 2 << 16, 260), STORE_TEMP(RFPR | 8 << 16, 261)]

comparing

  1. // Compare the difference of two RGB values, weigh by CCIR 601 luminosity: ColorCompare(r1,g1,b1, r2,g2,b2)
  2. l1 = (r1*299 + g1*587 + b1*114) / 255000
  3. l2 = (r2*299 + g2*587 + b2*114) / 255000
  4. dL = l1-l2
  5. dR = (r1-r2)/255, dG = (g1-g2)/255, dB = (b1-b2)/255
  6. return (dR*dR*0.299 + dG*dG*0.587 + dB*dB*0.114)*0.75 + dL*dL

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

  1. /**
  2.  * Build a piece of canal.
  3.  * @param tile end tile of stretch-dragging
  4.  * @param flags type of operation
  5.  * @param p1 start tile of stretch-dragging

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;