Loading

Paste #pej6sox8c

  1. import sys
  2. from PIL import Image
  3.  
  4. im = Image.open(sys.argv[1])
  5. print("File: {}".format(sys.argv[1]))

Paste #pbpxyn75a

  1. Changelog for default-r0.4.2:274
  2. - Feature: Vintage Air Depots and Air Stations suitable for early games with airships
  3. - Feature: Vintage Commuter airport suitable for early games.
  4. - Feature: Parameter to disable airport fences, optionally dependent on adjacent objects and/or stations; trim some trailing whitespace
  5. - Feature: Small Seaplane Airport

Paste #pnvxcsvic

  1. struct { TileIndex opposite_tile, next_tile_1, next_tile_2; TrackBits opposite_track, next_track_1, next_track_2; } table[] = {
  2.     { TileDiffXY(-1,  1), TileDiffXY( 0,  1), TileDiffXY(-1,  0), TRACK_BIT_LEFT,  _settings_game.pf.forbid_90_deg ? TRACK_BIT_X | TRACK_BIT_RIGHT : TRACK_BIT_3WAY_NE, _settings_game.pf.forbid_90_deg ? TRACK_BIT_Y | TRACK_BIT_RIGHT : TRACK_BIT_3WAY_SE },
  3.     { TileDiffXY(-1, -1), TileDiffXY(-1,  0), TileDiffXY( 0, -1), TRACK_BIT_LOWER, _settings_game.pf.forbid_90_deg ? TRACK_BIT_Y | TRACK_BIT_UPPER : TRACK_BIT_3WAY_NW, _settings_game.pf.forbid_90_deg ? TRACK_BIT_X | TRACK_BIT_UPPER : TRACK_BIT_3WAY_NE },
  4.     { TileDiffXY( 1, -1), TileDiffXY( 0, -1), Ti

Paste #pkvoiu2fe

  1. /**
  2.  * Check whether growing on a half-tile coast tile ends up blocking a water connection
  3.  *
  4.  * @param tile The target tile
  5.  * @return true if building here blocks a water connection

Paste #pzscnsvpe

  1.     modified:   bin/baseset/no_sound.obs
  2.     modified:   bin/baseset/orig_dos.obg
  3.     modified:   bin/baseset/orig_dos.obs
  4.     modified:   bin/baseset/orig_dos_de.obg
  5.     modified:   bin/baseset/orig_win.obg

Paste #peqw5lkx9

  1. /* $Id$ */
  2.  
  3. /*
  4.  * This file is part of OpenTTD.
  5.  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

Paste #pnqztwfas

  1. diff --git a/src/newgrf_animation_type.h b/src/newgrf_animation_type.h
  2. index 1f3995f46d..5ccc81d3a8 100644
  3. --- a/src/newgrf_animation_type.h
  4. +++ b/src/newgrf_animation_type.h
  5. @@ -46,11 +46,12 @@ enum IndustryAnimationTrigger {

Paste #pwmdc97kx

  1. /**
  2.  * Helper function
  3.  *
  4.  * @param bridge_tile
  5.  * @param bridge_dir

Paste #pnrowcvo8

  1. /* static */ VehicleID ScriptVehicle::GetVehicleID(UnitID unit_number, ScriptVehicle::VehicleType vehicle_type)
  2. {
  3.     EnforcePrecondition(INVALID_VEHICLE, vehicle_type == ScriptVehicle::VT_AIR || vehicle_type == ScriptVehicle::VT_ROAD || vehicle_type == ScriptVehicle::VT_RAIL || vehicle_type == ScriptVehicle::VT_WATER);
  4.     EnforcePrecondition(INVALID_VEHICLE, unit_number >= 0 && unit_number <= UINT16_MAX);

Paste #pl3jnl4gc

  1. diff --cc src/company_gui.cpp
  2. index c62c6d61cf,f39b8229c3..0000000000
  3. --- a/src/company_gui.cpp
  4. +++ b/src/company_gui.cpp
  5. @@@ -2194,16 -2219,18 +2219,23 @@@ struct CompanyWindow : Windo

Paste #prkv7boyh

  1. Ricardo@FX-8150 MINGW64 /d/OpenTTD/OpenTTD GitHub/OpenTTD (EnsureNoShipFromDiagDirs)
  2. $ git fetch upstream
  3.  
  4. Ricardo@FX-8150 MINGW64 /d/OpenTTD/OpenTTD GitHub/OpenTTD (EnsureNoShipFromDiagDirs)
  5. $ git rebase upstream/master

Paste #ppmwqrmbo

  1. (env) OpenTTD-website.andythenorth(17)$ python fetch-downloads.py
  2. Traceback (most recent call last):
  3.   File "fetch-downloads.py", line 11, in <module>
  4.     import aiohttp
  5.   File "/Users/andy2/workspace/buildout.python/python-3.6/lib/python3.6/site-packages/aiohttp/__init__.py", line 6, in <module>

Paste #plfma9jeb

  1. /** Directions to search towards given track bits and the ship's enter direction. */
  2. static const DiagDirection _ship_search_directions[6][4] = {
  3.     { DIAGDIR_NE,      INVALID_DIAGDIR, DIAGDIR_SW,      INVALID_DIAGDIR },
  4.     { INVALID_DIAGDIR, DIAGDIR_SE,      INVALID_DIAGDIR, DIAGDIR_NW      },
  5.     { INVALID_DIAGDIR, DIAGDIR_NE,      DIAGDIR_NW,      INVALID_DIAGDIR },

Paste #pvjabr0nl

  1. static bool IsPossibleLockLocation(TileIndex tile)
  2. {
  3.     DiagDirection dir = GetInclinedSlopeDirection(GetTileSlope(tile));
  4.     if (dir == INVALID_DIAGDIR) return false;

Paste #phtjkdxl4

  1. --Bridge--
  2.   Bridge -1
  3.     IsValidBridge():    false
  4.     GetName():          (null : 0x00000000)
  5.     GetName():          (null : 0x00000000)