Loading

Paste #ppls1aleu

  1. diff --git a/src/road_gui.cpp b/src/road_gui.cpp
  2. index 015f952..171b28a 100644
  3. --- a/src/road_gui.cpp
  4. +++ b/src/road_gui.cpp
  5. @@ -312,7 +312,19 @@ struct BuildRoadToolbarWindow : Window {

Paste #pnyij7sau

  1. Rail, in-game: railtype available only if vehicle is available, "build infrastructure when not available" has no effect
  2. Rail, scen-edit: never available
  3.  
  4. Road, in-game: roadtype available if vehicle is available. default road is also available if "build infrastructure when not available" is enabled
  5. Road, scen-edit: roadtype available if vehicle is available at some date in the past or future. default road is always available

NRT SE

  1. Handling NRT in Scenario Editor (SE)
  2.  
  3. Which RoadTypes should be available to be built?
  4.  - Tramways are buildable only by players (not city)
  5.    frosch: trams can also be allowed in SE. they would be buildable like canals, and owned by OWNER_NONE.

NRT SE

  1. Handling NRT in Scenario Editor (SE)
  2.  
  3. Which RoadTypes should be available to be built?
  4.  - Tramways are buildable only by players (not city)
  5.  - Some RoadTypes could not meet the requirements for a fair play

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

Palette-converter-v-1-7

  1. import math
  2. import time
  3. import datetime
  4. import os
  5. from os import remove

Paste #pc8ux64xd

  1. openttd
  2.   website
  3.   wiki
  4.   flyspray
  5.   bananas website

Paste #psgnsq161

  1. import math
  2. import os
  3. from os import remove
  4. from PIL import Image

palette-converter_v5

  1. import math
  2. import os
  3. from os import remove
  4. from PIL import Image

Paste #p1l57xrf7

  1. Changes + some indication of timing for a non-representative image
  2.  
  3. * Base version 2:52    (1024x1024, with 80% or so lot of transparent pixels)
  4. * Print only the row number 2:31
  5. * Do not perform superfluous checks 2:32    (also drops math.sqrt)

Paste #pevbhmgp1

  1. Changes + some indication of timing for a non-representative image
  2.  
  3. * Base version 2:52    (1024x1024, with 80% or so lot of transparent pixels)
  4. * Print only the row number 2:31
  5. * Do not perform superfluous checks 2:32    (also drops math.sqrt)

palette-converter_v4

  1. import math
  2. import os
  3. from os import remove
  4. from PIL import Image

Paste #ppn1pmyea

  1. #!/bin/sh
  2. cmake -D WITH_MOVIES:BOOL=OFF \
  3.       -D SDL_LIBRARY:PATH=/usr/lib64/libSDL2.so \
  4.       -D SDL_INCLUDE_DIR=/usr/include/SDL2 \
  5.       builddir

Paste #ptjiywpdx

  1. $  ag SLE_STRINGQUOTE
  2. src/saveload/saveload.h
  3. 168:    SLE_STRINGQUOTE  = SLE_FILE_STRING   | SLE_VAR_STRQ,
  4. 177:    SLE_STRQ  = SLE_STRINGQUOTE,

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