Loading

help me turn this into a

  1.     do {
  2.         if (_networking && num_companies + num_to_start >= _settings_client.network.max_companies) break;
  3.         if (num_ais + num_to_start >= (uint)_settings_game.difficulty.max_no_competitors) break;
  4.     } while (_settings_game.difficulty.max_no_competitors - ++num_to_start > 0 && AI::GetStartNextTime(num_to_start) == 0);

help me turn this into a

  1.     /* Count number of AI companies to start. */
  2.     uint num_to_start = 0;
  3.     do {
  4.         if (_networking && num_companies + num_to_start >= _settings_client.network.max_companies) break;
  5.         if (num_ais + num_to_start >= (uint)_settings_game.difficulty.max_no_competitors) break;

Paste #phiasxlfi

  1. *** OpenTTD Crash Report ***
  2.  
  3. Crash at: Fri Apr  5 01:50:18 2019
  4. In game date: 1976-12-14 (72)

Paste #pz2hnzzxc

  1. /** Finish a cycle of a measured element and store the measurement taken. */
  2. PerformanceMeasurer::~PerformanceMeasurer()
  3. {
  4.     if (this->elem == PFE_ALLSCRIPTS) {
  5.         /* Hack to not record scripts total when no scripts are active */

help me turn this into a

  1.     /* Count number of AI companies to start. */
  2.     uint num_to_start = 0;
  3.     do {
  4.         if (_networking && num_companies + num_to_start >= _settings_client.network.max_companies) break;
  5.         if (num_ais + num_to_start >= (uint)_settings_game.difficulty.max_no_competitors) break;

Paste #pumazxsaf

  1.     AirportTileTableIterator it(as->table[0], tile);
  2.     for (TileIndex cur_tile = it; cur_tile != INVALID_TILE; cur_tile = ++it) {
  3.         if (!::IsValidTile(cur_tile)) return INVALID_TOWN;
  4.     }

Paste #pqbylmyxq

  1.     for (local type = 0; type < 9999; type++) {
  2.         if (AIAirport.IsValidAirportType(type)) {
  3.             local w = AIAirport.GetAirportWidth(type);
  4.             local h = AIAirport.GetAirportHeight(type);
  5.             local r = AIAirport.GetAirportCoverageRadius(type);

Paste #p9dnkcojz

  1. // default spriteset templates
  2.         template spriteset_template_asymmetric_unreversed_athena_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 ]

Paste #porntptfs

  1. /* static */ uint AI::max_opcodes[MAX_COMPANIES] = { _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_

Paste #pidmwbsbi

  1.  
  2. * pnda hat die Verbindung getrennt (Read error: Connection reset by peer).
  3. <andythenorth> d) already exists too
  4. * AndroUser hat die Verbindung getrennt (Read error: Connection reset by peer).
  5. <andythenorth> assuming area = tiles

Paste #pne7eyxue

  1. /* ******************************************************************
  2.  * Definition of the industry tile, its callbacks, and graphics chain
  3.  * ******************************************************************/
  4.             spriteset(blast_furnace_spriteset_0_0, "src/graphics/industries/groundtiles.png") {
  5.                     tmpl_ground_tile(360, 10)

amount seems to be above

  1. Station* station = Station::Get(stationId);
  2. uint amount = station->goods[CC_PASSENGERS].cargo.TotalCount();
  3. //I've tried .AvailableCount() and CT_PASSENGERS each aswell, same result.
  4. if (!station->goods[CC_PASSENGERS].HasVehicleEverTriedLoading()) return true;
  5. if (amount == 0) {

Universal railtype

  1. }
  2. item (FEAT_RAILTYPES, universalrail, 15){
  3. property{
  4. label:                          "UNIV";
  5. introduction_date:              date(1958,01,01);

Paste #prhtd41fx

  1. /* static */ int AI::GetStartNextTime(uint count)
  2. {
  3.     /* Find the first company which doesn't exist yet */
  4.     for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) {
  5.         if (!Company::IsValidID(c)) {

Paste #pdsesmvi1

  1.     /* Compute number of AI companies to start. */
  2.     uint ais_to_start = 0;
  3.     CompanyMask company_mask = 0;
  4.     for (;;) {
  5.         if (_networking && current_companies + ais_to_start >= _settings_client.network.max_companies) break;