Loading

Paste #pojcblf4i

  1.     /**
  2.      * Some data on this window has become invalid.
  3.      * @param data Information about the changed data.
  4.      * @param gui_scope Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See #InvalidateWindowData() for details.
  5.      */

Paste #pjqfcilc7

  1. CmdConvertRoad
  2.  
  3. upgrade subtype when adding roadbits only if compatible
  4.  
  5. script api

Paste #pae4vz7u8

  1. 4 blocks, each:
  2.   14 foundations to make flat slope on top of the 14 slopes
  3.    8 foundations to make a slope inclined
  4.  
  5. 4 blocks, each:

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

  1.             case WID_AIC_LIST: {
  2.                 int y = r.top;
  3.                 for (CompanyID i = COMPANY_FIRST; i < MAX_COMPANIES; i++) {
  4.                     StringID cid = STR_AI_CONFIG_AILIST_COMPANY_ID_1 + i;
  5.                     DrawString(r.left + 10, r.right - 10, y + WD_MATRIX_TOP, cid);

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

  1. [SRC] Linking openttd
  2. Undefined symbols for architecture x86_64:
  3.   "_deflate", referenced from:
  4.       ZlibSaveFilter::Write(unsigned char*, unsigned long) in saveload.o
  5.       ZlibSaveFilter::Finish() in saveload.o

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

blender boolean test

  1. ### set object as Active
  2. #bpy.context.scene.objects.active = bpy.data.objects['Cube.'+objNumber]
  3.    
  4. ### add Boolean and set the target to Cube
  5. bpy.ops.object.modifier_add(type='BOOLEAN')

Paste #pkxkubyo7

  1. Index: src/ai/ai_core.cpp
  2. ===================================================================
  3. --- src/ai/ai_core.cpp  (revision 27551)
  4. +++ src/ai/ai_core.cpp  (working copy)
  5. @@ -62,6 +62,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 #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 @@