Loading

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

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

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

Paste #pzhxcbdxc

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

Paste #prho3dkro

  1.     /* Check whether the third tile is an aqueduct head, or a water tile
  2.      * with one corner raised with or without a rail track on the opposite
  3.      * corner, or a buoy. */
  4.     if (!IsTileType(tile_cur, MP_WATER)) {
  5.         if (IsTileType(tile_cur, MP_TUNNELBRIDGE)) {

Paste #pungzsg9l

  1. static void CheckIfAircraftNeedsService(Aircraft *v)
  2. {
  3.     bool needs_automatic_servicing = v->NeedsAutomaticServicing();
  4.     bool has_pending_replace = v->HasPendingReplace();
  5.     if (Company::Get(v->owner)->settings.vehicle.servint_aircraft == 0 || (!needs_automatic_servicing &&

Paste #pwzj5uvjx

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

  1. void AIConfig::AddRandomDeviation()
  2. {
  3.     ScriptConfigItemList::const_iterator it = NULL;
  4.     for (it = this->GetConfigList()->begin(); it != this->GetConfigList()->end(); it++) {
  5.         /* start_date = 0 is a special case, where random deviation does not occur. */

Paste #pjysl6t8a

  1.     if (AI::CanStartNew() && _game_mode != GM_MENU && --_next_competitor_start == 0) {
  2.         /* Allow multiple AIs to possibly start in the same tick. */
  3.         do {
  4.             if (!MaybeStartNewCompany()) break;
  5.         } while (AI::GetStartNextTime() == 0);
  6.     }

Paste #pjnrgrd59

  1.             /* Multiplayer buttons. */
  2.             if (!_networking) {
  3.                 if (_settings_client.gui.start_spectator || _local_company == COMPANY_SPECTATOR) {
  4.                     plane = CWP_MP_C_JOIN;
  5.                 } else {