Loading

Paste #pdfskp6jj

  1. void ScriptConfig::AddRandomDeviation()
  2. {
  3.     for (ScriptConfigItemList::const_iterator it = this->GetConfigList()->begin(); it != this->GetConfigList()->end(); it++) {
  4.         if ((*it).random_deviation != 0) {
  5.             int value = this->GetSetting((*it).name);

Paste #p6opfmlwu

  1. void ScriptConfig::AddRandomDeviation(bool is_ai)
  2. {
  3.     for (ScriptConfigItemList::const_iterator it = this->GetConfigList()->begin(); it != this->GetConfigList()->end(); it++) {
  4.         if ((*it).random_deviation != 0) {
  5.             int value = this->GetSetting((*it).name);

Paste #pjhkz0ndn

  1.             /* Multiplayer buttons. */
  2.             if (!_networking) {
  3.                 if (_settings_client.gui.start_spectator || _local_company == COMPANY_SPECTATOR) {
  4.                     if (_local_company == COMPANY_SPECTATOR) {
  5.                         plane = CWP_MP_C_JOIN;

Paste #pwbjmocxr

  1. Error: Assertion failed at line 168 of /home/pavels/Builds/OpenTTD/src/tilearea_type.h: this->tile != INVALID_TILE
  2. Crash encountered, generating crash log...
  3. *** OpenTTD Crash Report ***
  4.  
  5. Crash at: Tue Feb 19 19:29:07 2019

RoadAI 4 vs 5

  1. diff --git a/info.nut b/info.nut
  2. index e68a3cc..1f0b33c 100644
  3. --- a/info.nut
  4. +++ b/info.nut
  5. @@ -22,8 +22,8 @@

Paste #psrm6pufi

  1. switch(FEAT_INDUSTRIES, SELF, extra_text_switch,
  2.         [STORE_TEMP(9000, 256)
  3.         | STORE_TEMP(9000, 257)
  4.         | STORE_TEMP(9000, 258)
  5.         | STORE_TEMP(9000, 259)

Paste #pciylxx8w

  1. import("Library.SCPLib", "SCPLib", 45);
  2. import("Library.SCPClient_CompanyValue", "SCPClient_CompanyValue", 1);
  3. //require("scp.nut");
  4.  
  5. class LuDiAIAfterFix extends AIController {

Paste #po0sy3phj

  1. // Global function for checking if SCP is enabled at all
  2. function IsSCPEnabled()
  3. {
  4.     return GSController.GetSetting("scp_support");
  5. }

Paste #pwcf1wdzf

  1.                 if (!AITown.HasStatue(town)) {
  2.                     if (AITown.IsActionAvailable(town, AITown.TOWN_ACTION_BUILD_STATUE)) {
  3.                         local perform_action = true;
  4.                         if (cvgs.IsCompanyValueGSGame() && cvgs.GetCompanyIDRank(AICompany.ResolveCompanyID(AICompany.COMPANY_SELF)) == 1 && cvgs.RankingList().Count() > 1) {
  5.                             AILog.Info("Cost of perfoming action: " + TestPerformTownAction().TestCost(town, AITown.TOWN_ACTION_BUILD_STATUE) + " ; Value difference to company behind: " + cvgs.GetCompanyIDDiffToNext(AICompany.ResolveCompanyID(AICompany.COMPANY_SELF), false));
  6.                             if (TestPerformTownAction().TestCost(town, AITown.TOWN_ACTION_BUILD_STATUE) > cvgs.GetCompanyIDDiffToNext(AIC

Paste #p3eeyjkqe

  1. class TestPerformTownAction extends MoneyTest {
  2.     t = null;
  3.     a = null;
  4.    
  5.     function DoAction() {

Paste #p7uvaedf7

  1. local myCID = Utils.MyCID();
  2.  
  3.                 if (!AITown.HasStatue(town)) {
  4.                     local action = AITown.TOWN_ACTION_BUILD_STATUE;
  5.                     if (AITown.IsActionAvailable(town, action)) {

Paste #pozutqws7

  1.         local start_tick = AIController.GetTick();
  2.         for (local i = routeManager.m_townRouteArray.len() - 1; i >= 0; --i) {
  3. //          AILog.Info("managing route " + i + ". sellVehiclesInDepot");
  4.             routeManager.m_townRouteArray[i].sellVehiclesInDepot();
  5.         }

Paste #pbq3ammjp

  1. function Utils::GetVehicleID(vehicle_unitnumber, vehicle_type)
  2. {
  3.     if (!(vehicle_unitnumber > 0 && vehicle_unitnumber <= 0xFFFF)) return AIVehicle.VEHICLE_INVALID;
  4.     if (!(vehicle_type >= AIVehicle.VT_RAIL && vehicle_type <= AIVehicle.VT_AIR)) return AIVehicle.VEHICLE_INVALID;

https://imgur.com/wQuDOi5

  1. https://imgur.com/wQuDOi5
  2.  
  3. static bool GrowingOnWateredTile(TileIndex tile)
  4. {
  5.     TrackBits water_track = TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_WATER, 0));

Paste #p807efevu

  1. struct { TrackBits next_track_1, next_track_2; } table[] = {
  2.     /*         t1x,t1y,t2x,t2y,              next_track_1          ,        next_track_2             opposite_tile */
  3.     /* CORNER_W  0,  1, -1,  0,  */ { TRACK_BIT_X | TRACK_BIT_RIGHT, TRACK_BIT_Y | TRACK_BIT_RIGHT }, /* -1,  1 */
  4.     /* CORNER_S  1,  0,  0,  1,  */ { TRACK_BIT_Y | TRACK_BIT_UPPER, TRACK_BIT_X | TRACK_BIT_UPPER }, /*  1,  1 */
  5.     /* CORNER_E  0, -1,  1,  0,  */ { TRACK_BIT_X | TRACK_BIT_LEFT , TRACK_BIT_Y | TRACK_BIT_LEFT  }, /*  1, -1 */