Loading

Paste #pnrs6ccbj

  1.     bool add_cost;
  2.     /* At this point we got a flat tile with water at the ground and no bridge over it. Check for ownership */
  3.     if (IsWaterTile(tile) && IsCanal(tile)) {
  4.         ret = EnsureNoVehicleOnGround(tile);
  5.         if (ret.Failed()) return ret;

Paste #p0mtkypys

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

Paste #pcgnsbddr

  1. bool gs_slot = this->selected_slot == OWNER_DEITY;
  2. bool dead_ai_slot = IsEditable((CompanyID)(this->selected_slot)) && Company::IsValidAiID(this->selected_slot) && !Company::Get(this->selected_slot)->ai_instance->IsDead();
  3. this->SetWidgetDisabledState(WID_AIC_CHANGE, _game_mode == GM_NORMAL && (gs_slot || dead_ai_slot) || this->selected_slot == INVALID_COMPANY);

Paste #peaytjfok

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

Paste #pwmdu3hy1

  1. diff --git a/src/newgrf.cpp b/src/newgrf.cpp
  2. index ade7c00..de7a4e7 100644
  3. --- a/src/newgrf.cpp
  4. +++ b/src/newgrf.cpp
  5. @@ -4262,7 +4262,7 @@ static ChangeInfoResult RoadTypeChangeInfo(uint id, int numinfo, int prop, ByteR

Paste #pbq5a3cca

  1.         bool selected_ingame = _game_mode == GM_NORMAL && this->selected_slot != INVALID_COMPANY && IsEditable(this->selected_slot);
  2.         bool is_gs_slot = this->selected_slot == OWNER_DEITY;
  3.         bool is_green_ai_slot = Company::IsValidAiID(selected_slot) && !Company::Get(selected_slot)->ai_instance->IsDead();
  4.         if (selected_ingame && (is_gs_slot || is_green_ai_slot)) {
  5.             configure_button->SetDataTip(STR_AI_DEBUG_SETTINGS, STR_AI_DEBUG_SETTINGS_TOOLTIP);

Paste #pasvxuszs

  1. // BRTrains
  2. // BRTrains.pnml
  3. //
  4. //============================================================
  5. // MAIN FILE

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

  1. Index: src/ai/ai_scanner.cpp
  2. ===================================================================
  3. --- src/ai/ai_scanner.cpp   (revision 27582)
  4. +++ src/ai/ai_scanner.cpp   (working copy)
  5. @@ -136,6 +136,20 @@

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