Loading

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

  1. /* ******************************************************************
  2.  * Definition of the industry tile, its callbacks, and graphics chain
  3.  * ******************************************************************/
  4.             spriteset(oil_rig_spriteset_0_0, "src/graphics/industries/groundtiles.png") {
  5.                     tmpl_ground_tile(360, 10)

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

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

Paste #pwmdc97kx

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

Paste #phtjkdxl4

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

Paste #pnkjrjxub

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

Paste #p3c6qc5ys

  1. void ScriptConfig::ResetChangeableSettings()
  2. {
  3.     for (SettingValueList::iterator it = this->settings.begin(); it != this->settings.end();) {
  4.         const ScriptConfigItem *config_item = this->info->GetConfigItem((*it).first);
  5.         assert(config_item != NULL);

Paste #przn2n2l2

  1.     if (!_networking && _local_company == COMPANY_SPECTATOR && include_spectator && widget == WID_TN_COMPANIES) {
  2.         bool human_company = false;
  3.         for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) {
  4.             if (Company::IsValidHumanID(c)) {
  5.                 human_company = true;

SCPLib Message.GetBoolDat

  1. function _SCPLib_Message::GetBoolData(index)
  2. // Get bool data at the index position in Data. If Data doesn't exist or the
  3. // index is invalid, null is returned. If data exist, but is not of the type
  4. // integer, null will be returned. Yes, it is not a typo. Bools are transmitted
  5. // as integers, however this function does check that the received integer is

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