Loading

Paste #pcv1bqqoa

  1. /**
  2.  * Window to configure which AIs will start.
  3.  */
  4. struct AIConfigWindow : public Window {
  5.     CompanyID selected_slot; ///< The currently selected AI slot or \c INVALID_COMPANY.

Paste #p8uexanir

  1. uint square_left = rtl ? r.right - WD_MATRIX_RIGHT - square.width : r.left + WD_MATRIX_LEFT;
  2. uint cid_left    = rtl ? square_left - 10 - widest_cid            : square_left + square.width + 10;
  3. uint cid_right   = rtl ? cid_left + widest_cid                    : cid_left + widest_cid;
  4. uint text_left   = rtl ? cid_left - 10 - text_width               : cid_right + 10;
  5. uint text_right  = rtl ? text_left + text_width                   : text_left + text_width;

Paste #pxunmvwxo

  1.             case WID_AIC_CHANGE: {
  2.                 uint change_width = 0;
  3.                 static const StringID param[] = {STR_AI_CONFIG_GAMESCRIPT, STR_AI_CONFIG_NONE, STR_AI_CONFIG_AI};
  4.                 for (int i = 0; i < lengthof(param); i++) {
  5.                     SetDParam(0, param[i]);

Paste #ped7ucocw

  1.             case WID_AIC_CHANGE: {
  2.                 uint change_width = 0;
  3.                 StringID change = STR_AI_CONFIG_CHANGE;
  4.                 StringID _param[] = { STR_AI_CONFIG_GAMESCRIPT, STR_AI_CONFIG_NONE, STR_AI_CONFIG_AI };
  5.                 for (int i = 0; i < 3; i++) {

Paste #ps887x0fy

  1. case WID_AIC_CHANGE: {
  2.                 uint change_width = 0;
  3.                 StringID change = STR_AI_CONFIG_CHANGE;
  4.                 SetDParam(0, STR_AI_CONFIG_GAMESCRIPT);
  5.                 change_width = max(change_width, GetStringBoundingBox(change).width);

Paste #pwvo7pr2m

  1. /**
  2.  * Window to configure which AIs will start.
  3.  */
  4. struct AIConfigWindow : public Window {
  5.     CompanyID selected_slot; ///< The currently selected AI slot or \c INVALID_COMPANY.

Paste #pbokluegy

  1.     1.  swap RoadTypes enum to version given by Alberth, with StreetTypes and TramTypes, and methods to set / get / check those from the RoadTypes instance
  2.       a.    substitute RoadNotTypes whilst patching, then replace later (RoadNotTypes won’t cause search term conflict with RoadTypes)
  3.       b. to patch RoadTypes, there are 78 places consuming RoadTypes enum
  4.         i.  move the storage to m4 as part of this, and deprecate the two existing road/tram bits
  5.         ii. most of the consumers of RoadTypes don’t look hard to patch

Paste #pvgmjfgdm

  1.     1.  swap RoadTypes enum to version given by Alberth, with StreetTypes and TramTypes, and methods to set / get / check those from the RoadTypes instance
  2.     a.  substitute RoadNotTypes whilst patching, then replace later (RoadNotTypes won’t cause search term conflict with RoadTypes)
  3.     b. to patch RoadTypes, there are 78 places consuming RoadTypes enum
  4.     i.  move the storage to m4 as part of this, and deprecate the two existing road/tram bits
  5.     ii. most of the consumers of RoadTypes don’t look hard to patch

Paste #psgxbgvtr

  1. swap RoadTypes enum to version given by Alberth, with StreetTypes and TramTypes, and methods to set / get / check those from the RoadTypes instance
  2. substitute RoadNotTypes whilst patching, then replace later (RoadNotTypes won’t cause search term conflict with RoadTypes)
  3. to patch RoadTypes, there are 78 places consuming RoadTypes enum
  4. move the storage to m4 as part of this, and deprecate the two existing road/tram bits
  5. most of the consumers of RoadTypes don’t look hard to patch

Paste #pnni5r3vm

  1. diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
  2. index 3a903fb..6763c6a 100644
  3. --- a/src/rail_gui.cpp
  4. +++ b/src/rail_gui.cpp
  5. @@ -1028,21 +1028,23 @@ public:

Paste #pkjxupvgx

  1. commit b19ed8d29075ab55ec00b24e8e622f69b1b22939
  2. Author: JASheppard <J_Sheppard@live.co.uk>
  3. Date:   Thu Mar 13 20:29:44 2014 +0000
  4.  
  5.     New function: playSoundsAtEntityInRandomSequence()

Paste #pxlq0bp5p

  1. diff --git a/CorsixTH/Lua/world.lua b/CorsixTH/Lua/world.lua
  2. index 1a6d6e4..36388fe 100644
  3. --- a/CorsixTH/Lua/world.lua
  4. +++ b/CorsixTH/Lua/world.lua
  5. @@ -913,7 +913,6 @@ function World:setSpeed(speed)

Paste #pficrqgae

  1. /**
  2.  * Window to configure which AIs will start.
  3.  */
  4. struct AIConfigWindow : public Window {
  5.     CompanyID selected_slot; ///< The currently selected AI slot or \c INVALID_COMPANY.

Paste #pmshshhud

  1.                 for (CompanyID i = COMPANY_FIRST; i < MAX_COMPANIES; i++) {
  2.                     StringID cid = STR_AI_CONFIG_AILIST_COMPANY_ID_1 + i;
  3.                         uint width = GetStringBoundingBox(cid).width;
  4.                         this->cid_width = max(GetStringBoundingBox(cid).width, GetStringBoundingBox(cid_width).width);
  5.                 }

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);