Loading

Paste #p4dec4avi

  1. static void CheckIfAircraftNeedsService(Aircraft *v)
  2. {
  3.     if (Company::Get(v->owner)->settings.vehicle.servint_aircraft == 0 || !v->NeedsAutomaticServicing()) return;
  4.     if (v->IsChainInDepot()) {
  5.         VehicleServiceInDepot(v);

Paste #ptdil1uqf

  1.         bool hangar_in_o = false;
  2.         const Order *o;
  3.  
  4.         /* Is there at least an airport with a hangar in the orders? */
  5.         FOR_VEHICLE_ORDERS(v, o) {

Pyrite/Mineral Mine Code

  1. from industry import IndustryPrimaryExtractive, TileLocationChecks
  2.  
  3. industry = IndustryPrimaryExtractive(id='pyrite_mine',
  4.                                     accept_cargo_types=['ENSP'],
  5.                                     prod_cargo_types=['PORE'],

Paste #pxg8qhtoo

  1. # git completion with a script download from github
  2. source ~/git-completion.bash
  3. # alternative git completion via Apple
  4. # source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh

Paste #pss04mpkm

  1. # pretty colors, yay!
  2. [color]
  3.     diff = auto
  4.     status = auto
  5.     branch = auto

cets build failure

  1. (grfdev) ingo@aeolus:~/ottd/grfdev/eddi-nml$ make
  2. /usr/bin/env python3 setup.py build_ext --inplace
  3. /home/ingo/anaconda3/envs/grfdev/lib/python3.6/site-packages/setuptools/dist.py:407: UserWarning: The version specified ('v6872:faebe15eaad4') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  4.   "details." % self.metadata.version
  5. running build_ext

Paste #pd33certm

  1. diff --git a/src/string.cpp b/src/string.cpp
  2. index 4c714a2e02..fc27d8b5ed 100644
  3. --- a/src/string.cpp
  4. +++ b/src/string.cpp
  5. @@ -595,7 +595,7 @@ int strnatcmp(const char *s1, const char *s2, bool ignore_garbage_at_front)

Paste #potfqlpua

  1. OpenTTD.OpenTTD(master)$ git rev-list --count HEAD --since="Apr 7 2018"  --before="Jan 1 2019"
  2. 244
  3. OpenTTD.OpenTTD(master)$ git rev-list --count HEAD --since="Apr 7 2016"  --before="Apr 6 2018"
  4. 429
  5. OpenTTD.OpenTTD(master)$ git rev-list --count HEAD --since="Apr 7 2017"  --before="Apr 6 2018"
  6. 135

Paste #pp4mfiqxw

  1. print("Enter the range, values separated by comma:")
  2. [a,b] = [int(z) for z in input().split(',')]
  3. odd = set('13579')
  4. l = []
  5. for n in range(a, b + 1):

Paste #pxhdxo9yw

  1. print("Enter the range, values separated by comma:")
  2. [a,b] = [int(z) for z in input().split(',')]
  3. odd = set(['1','3','5','7','9'])
  4. l = []
  5. for n in range(a,b+1):

numbers with only even di

  1. print("Enter the range, values separated by comma:")
  2. [a,b] = [int(z) for z in input().split(',')]
  3. odd = set(['1','3','5','7','9'])
  4. l = []
  5. for n in range(a,b+1):

Paste #pnlm7apwn

  1.     /* Adjust speed limits by plane speed factor to prevent taxiing
  2.      * and take-off speeds being too low. */
  3.     speed_limit *= _settings_game.vehicle.plane_speed;
  4.  
  5.     /* adjust speed for broken vehicles */

Paste #pmxadixsr

  1.     bool aircraft_broken = v->vehstatus & VS_AIRCRAFT_BROKEN;
  2.     if (aircraft_broken) speed_limit = SPEED_LIMIT_BROKEN;
  3.  
  4.     /* Adjust speed limits by plane speed factor to prevent taxiing
  5.      * and take-off speeds being too low. */

Paste #p4ykc3h3j

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

  1.     /* adjust speed for broken vehicles */
  2.     if (v->vehstatus & VS_AIRCRAFT_BROKEN) {
  3.         if (speed_limit > SPEED_LIMIT_BROKEN) {
  4.             hard_limit = false;
  5.         }