Loading

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;

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 */

Paste #pkvoiu2fe

  1. /**
  2.  * Check whether growing on a half-tile coast tile ends up blocking a water connection
  3.  *
  4.  * @param tile The target tile
  5.  * @return true if building here blocks a water connection

Paste #pl3jnl4gc

  1. diff --cc src/company_gui.cpp
  2. index c62c6d61cf,f39b8229c3..0000000000
  3. --- a/src/company_gui.cpp
  4. +++ b/src/company_gui.cpp
  5. @@@ -2194,16 -2219,18 +2219,23 @@@ struct CompanyWindow : Windo

Paste #pigvrkqj9

  1. ***************
  2. *** 37,42 ****
  3.   #include "core/backup_type.hpp"
  4.   #include "zoom_func.h"
  5.   #include "disaster_vehicle.h"

Paste #pwmdc97kx

  1. /**
  2.  * Helper function
  3.  *
  4.  * @param bridge_tile
  5.  * @param bridge_dir

Paste #pj212urmk

  1. --Bridge--
  2.   Bridge -1
  3.     IsValidBridge():     false
  4.     GetName():
  5.      AIVehicle.VT_RAIL:  (null : 0x00000000)

Paste #prho3dkro

  1.     /* Check whether the third tile is an aqueduct head, or a water tile
  2.      * with one corner raised with or without a rail track on the opposite
  3.      * corner, or a buoy. */
  4.     if (!IsTileType(tile_cur, MP_WATER)) {
  5.         if (IsTileType(tile_cur, MP_TUNNELBRIDGE)) {

Paste #pungzsg9l

  1. static void CheckIfAircraftNeedsService(Aircraft *v)
  2. {
  3.     bool needs_automatic_servicing = v->NeedsAutomaticServicing();
  4.     bool has_pending_replace = v->HasPendingReplace();
  5.     if (Company::Get(v->owner)->settings.vehicle.servint_aircraft == 0 || (!needs_automatic_servicing &&

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

  1. STR_CONFIG_SETTING_TOWN_CARGOGENMODE                            :Town cargo generation: {STRING2}
  2. STR_CONFIG_SETTING_TOWN_CARGOGENMODE_HELPTEXT                   :How much cargo is produced by houses in towns, relative to the overall population of the town.{}Quadratic growth: a town with twice the population generates four times as many passengers.{}Linear growth: A town twice the size generates twice the amount of passengers.
  3. STR_CONFIG_SETTING_TOWN_CARGOGENMODE_BITCOUNT                   :Linear
  4. STR_CONFIG_SETTING_TOWN_CARGOGENMODE_ORIGINAL                   :Quadratic (original)

Paste #palwv1ltm

  1. STR_CONFIG_SETTING_TOWN_CARGOGENMODE                            :Town cargo generation: {STRING2}
  2. STR_CONFIG_SETTING_TOWN_CARGOGENMODE_HELPTEXT                   :How much cargo is produced by houses in towns, relative to the overall population of the town.{}{LTBLUE}Quadratic growth:{WHITE} a town with twice the population generates four times as many passengers. This is the original behaviour{}{LTBLUE}Linear growth:{WHITE} A town twice the size generates twice the amount of passengers.
  3. STR_CONFIG_SETTING_TOWN_CARGOGENMODE_ORIGINAL                   :Quadratic
  4. STR_CONFIG_SETTING_TOWN_CARGOGENMODE_BITCOUNT                   :Linear

Paste #pqkpfycxi

  1. [2019-02-20 13:40:20] dbg: [misc] Repositioning Main Toolbar...
  2. [2019-02-20 13:40:20] dbg: [misc] Repositioning statusbar...

Paste #pafuuppxq

  1. // default spriteset templates
  2.         template spriteset_template_asymmetric_unreversed_geronimo_unflipped(y) {
  3.                 //[left_x, upper_y, width, height, offset_x, offset_y]
  4.                 [60, y, 8, 29, -3, -16 ]
  5.                 [73, y, 26, 24, -14, -15 ]

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