Loading

Paste #praxk2bpp

  1.     virtual void OnInvalidateData(int data = 0, bool gui_scope = true)
  2.     {
  3.         if (!IsEditable(this->selected_slot)) {
  4.             this->selected_slot = INVALID_COMPANY;
  5.         }

Paste #powsd7efu

  1.     virtual void OnInvalidateData(int data = 0, bool gui_scope = true)
  2.     {
  3.         if (!IsEditable(this->selected_slot)) {
  4.             this->selected_slot = INVALID_COMPANY;
  5.         }

Paste #ppkypgbqe

  1.     virtual void OnInvalidateData(int data = 0, bool gui_scope = true)
  2.     {
  3.         if (!IsEditable(this->selected_slot)) {
  4.             this->selected_slot = INVALID_COMPANY;
  5.         }

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

  1. /* Display "Configure" or "Settings" button: */
  2. _game_mode != GM_NORMAL // not in a game, and thus, display the "Configure" button
  3. _game_mode == GM_NORMAL // in a game, check if something is selected or not
  4.  
  5. this->selected_slot == INVALID_COMPANY // nothing is selected, and thus, display the "Configure" button

Paste #pllqjeyt8

  1. /* Display "Configure" or "Settings" button: */
  2. _game_mode != GM_NORMAL // not in a game, and thus, display the "Configure" button
  3. _game_mode == GM_NORMAL // in a game, check if something is selected or not
  4.  
  5. this->selected_slot == INVALID_COMPANY // nothing is selected, and thus, display the "Configure" button

Paste #pcjfb5zge

  1. Display "Configure" or "Settings" button:
  2. _game_mode != GM_NORMAL // not in a game, and thus, display the "Configure" button
  3. _game_mode == GM_NORMAL // in a game, check if something is selected or not
  4.  
  5. this->selected_slot == INVALID_COMPANY // nothing is selected, and thus, display the "Configure" button

Paste #p2bqmlcma

  1. Display "Configure" or "Settings" button:
  2. _game_mode != GM_NORMAL // not in a game, and thus, display the "Configure" button
  3. _game_mode == GM_NORMAL // in a game, check if something is selected or not
  4.  
  5. this->selected_slot == INVALID_COMPANY // nothing is selected, and thus, display the "Configure" button

Paste #px3w3svdf

  1. /usr/include/ffmpeg/libavutil/imgutils.h
  2. 159:int av_image_get_buffer_size(enum AVPixelFormat pix_fmt, int width, int height, int align);
  3. 164: * av_image_get_buffer_size() can be used to compute the required size
  4.  
  5. /usr/include/ffmpeg/libavcodec/avcodec.h
  6. 4823: * @see av_image_get_buffer_size().

Paste #pvg5ftb8r

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

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

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

Paste #pbr8tu10e

  1. $ ls -l /home/alberth/.openttd/scenario//UNNAMED.sct                                
  2. -rw-rw-r--. 1 alberth alberth 10240 Apr 23 20:33 /home/alberth/.openttd/scenario//UNNAMED.sct
  3.  
  4. $ tar tvf /home/alberth/.openttd/scenario//UNNAMED.sct                                
  5. -rw-rw-r-- 1000/1000       104 2016-04-23 20:33 scenario/metadata.txt

Paste #phjlypvuw

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