Loading

Paste #p68rqetdr

  1. /**
  2.  * Is this tile a target for ships to get to a nearby dock?
  3.  * @param tile Tile to query
  4.  * @param diagdir Optional diagonal direction to look for axis compatibility.
  5.  * @return True if the tile is a target for ships to get to a nearby dock.

Paste #ppwljoajq

  1. diff -r 8ce7d725753d scripts/lang_sync
  2. --- a/scripts/lang_sync Sun Jan 10 19:43:08 2016 +0100
  3. +++ b/scripts/lang_sync Sat Apr 02 20:44:15 2016 +0200
  4. @@ -644,6 +644,9 @@
  5.          with open(ll.path_name, 'r', encoding = 'utf-8') as handle:

Paste #pz4l5rola

  1. diff -r d69c8aaf6db6 nml/global_constants.py
  2. --- a/nml/global_constants.py   Thu Jan 07 14:01:41 2016 +0100
  3. +++ b/nml/global_constants.py   Sun Oct 16 17:44:08 2016 +0200
  4. @@ -114,22 +114,26 @@
  5.      'TRAIN_FLAG_FLIP' : 3,

Paste #pfvunlauc

  1.             } else {
  2.                 if ((ind_behav & INDUSTRYBEH_BUILT_ONWATER) && _settings_game.construction.build_on_competitor_canal) {
  3.                     if (IsWaterTile(cur_tile) && IsCanal(cur_tile)) {
  4.                         CommandCost ret = CheckTileOwnership(cur_tile);
  5.                         if (ret.Failed() && GetTileOwner(cur_tile) >= MAX_COMPANIES) return ret;

Paste #pi7dgzowb

  1. Check first slot:                                                           Check second slot:
  2. is_gs_slot  = false // GS slot isn't selected                               silver:
  3. is_gs_slot  = true  // GS slot is selected, and thus, unmovable             IsEditable  = false // human player in this slot, or outside slot range of 1-15, and thus, unmovable
  4.  
  5. invalid_slot= false // nothing isn't selected                               orange:

Paste #px2mrnq7q

  1. enum ScriptSlotFlags {
  2.     SCRIPTSLOT_NONE                         = 0,                                             ///< No Company or Game Script started in this slot
  3.     SCRIPTSLOT_HU_STARTED                   = 1,                                             ///< Human Company started in this slot
  4.     SCRIPTSLOT_AI_STARTED                   = 2,                                             ///< AI Company started in this slot
  5.     SCRIPTSLOT_GS_STARTED                   = 3,                                             ///< Game Script started in this slot

Paste #pgmqywz0y

  1. dbg: [script] spanish:20: warning: STR_CONCAT_3: Param idx #1 'STRING' doesn't match with template command 'STRING1'
  2. dbg: [script] spanish:20: warning: STR_CONCAT_3: Param idx #2 'STRING' doesn't match with template command 'STRING1'
  3. dbg: [script] spanish:21: warning: STR_CONCAT_4: Param idx #1 'STRING' doesn't match with template command 'STRING1'
  4. dbg: [script] spanish:21: warning: STR_CONCAT_4: Param idx #2 'STRING' doesn't match with template command 'STRING1'
  5. dbg: [script] spanish:21: warning: STR_CONCAT_4: Param idx #3 'STRING' doesn't match with template command 'STRING1'
  6. dbg: [script] spanish:20: warning: STR_CONCAT_3: Param idx #1 'STRING' doesn't match with

Paste #p1rucchis

  1. $ tar tvf ~/.openttd/content_download/newgrf/OpenGFX_Trains-0.3.0.tar
  2. drwxr-xr-x www-data/www-data 0 2012-01-21 23:16 OpenGFX_Trains-0.3.0/
  3. -rw-r--r-- www-data/www-data 17987 2012-01-21 23:16 OpenGFX_Trains-0.3.0/license.txt
  4. -rw-r--r-- www-data/www-data 280435 2012-01-21 23:16 OpenGFX_Trains-0.3.0/ogfx-trains.grf
  5. -rw-r--r-- www-data/www-data   7054 2012-01-21 23:16 OpenGFX_Trains-0.3.0/changelog.txt

Paste #pyey7yzjx

  1. diff -r 5ec05bde6098 nml/grfstrings.py
  2. --- a/nml/grfstrings.py Sun Oct 16 19:30:32 2016 +0200
  3. +++ b/nml/grfstrings.py Thu Dec 22 21:09:30 2016 +0100
  4. @@ -207,6 +207,7 @@
  5.  'CARGO_LONG':     {'unicode': r'\UE09A\1B', 'ascii': r'\9A\1B', 'size': 2 * 2},

Paste #pwldz1rs3

  1.         bool is_gs_slot = this->selected_slot == OWNER_DEITY;
  2.         bool invalid_slot = this->selected_slot == INVALID_COMPANY;
  3.         bool is_orange_slot = IsEditable((CompanyID)(this->selected_slot)) && !Company::IsValidID(this->selected_slot);
  4.         bool is_green_slot = IsEditable((CompanyID)(this->selected_slot)) && Company::IsValidID(this->selected_slot) && Company::IsValidAiID(this->selected_slot) && !Company::Get(this->selected_slot)->ai_instance->IsDead();
  5.         bool is_red_slot = IsEditable((CompanyID)(this->selected_slot)) && Company::IsValidID(this->selected_slot) && Company::IsValidAiID(this->selected_slot) && Company::Get(this->selected_slot)->ai_instance->IsDead();
  6.         bool is_

Paste #po4ime8wf

  1. Index: src/ai/ai_gui.cpp
  2. ===================================================================
  3. --- src/ai/ai_gui.cpp   (revision 27549)
  4. +++ src/ai/ai_gui.cpp   (working copy)
  5. @@ -685,7 +685,7 @@

Paste #p7c0lr2u8

  1. /* Find out which parameters are editable */
  2. _game_mode != GM_NORMAL // not in a game, and thus, editable
  3. _game_mode == GM_NORMAL // in a game, orange, red and green have parameters, check if they're AI or GS
  4.  
  5. this->slot != OWNER_DEITY // it's an AI slot, check if it's orange, red or green

Paste #pyjs64de7

  1. Index: src/saveload/ai_sl.cpp
  2. ===================================================================
  3. --- src/saveload/ai_sl.cpp  (revision 27582)
  4. +++ src/saveload/ai_sl.cpp  (working copy)
  5. @@ -83,7 +83,7 @@

Paste #psgnsq161

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

Paste #pghr7xyan

  1. static inline Owner GetCanalOwner(TileIndex t)
  2. {
  3.     assert(GetWaterClass(t) == WATER_CLASS_CANAL);
  4.  
  5.     if (IsCanal(t)) return GetTileOwner(t);