Loading

Paste #ppazmhk0d

  1. /** Start new competitor companies if possible. */
  2. void MaybeStartNewCompany()
  3. {
  4.     /* Count number of total existing companies. */
  5.     uint current_companies = (uint)Company::GetNumItems();

Paste #pwxfhikif

  1. planetmaker@aeolusmaximus-vortex:~/ottd$ hg clone ssh://user@host/path/to/repo/ottd-hg ottd-hg
  2. Gegenseite: abort: repository requires features unknown to this Mercurial: sparserevlog!
  3. Gegenseite: (see https://mercurial-scm.org/wiki/MissingRequirement for more information)
  4. Abbruch: Keine passende Antwort des entfernten hg!
  5. planetmaker@aeolusmaximus-vortex:~/ottd$ hg --version

Paste #pwvjchy87

  1. local noise = AIAirport.GetNoiseLevelIncrease(tile, type);
  2. local allowed_noise = AITown.GetAllowedNoise(AIAirport.GetNearestTown(tile, type));
  3. local old_result = (noise != -1 && allowed_noise != -1 && noise <= allowed_noise);
  4. assert(old_result == AIAirport.IsNoiseLevelIncreaseAllowed(tile, type));

Paste #pgigedt8j

  1. UpTheIrons19Today at 2:12 AM
  2. So I'm trying to play OpenTTD, but the cursor keeps disappearing. It almost looks like its going behind the terrain. Even after reinstalling Windows due to a hardware upgrade, the problem still persists
  3. Its not because of my mouse, I've tried every mouse I have. My drivers are up to date, and going back to old versions, the problem still persists. I have no idea what to do. I hear if you modify the source code, you can get the default windows cursor, and that might help, but I have NO IDEA how to compile it, and I have no idea how to deal with source code, so thats out of the question
  4. As for when this started happening, I think it was in ei

Paste #pwul3cvlf

  1. NWidget(NWID_HORIZONTAL, NC_EQUALSIZE),
  2.         NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_SC_TAKE), SetDataTip(STR_SCREENSHOT_SCREENSHOT, 0),
  3.         NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_SC_TAKE_ZOOMIN), SetDataTip(STR_SCREENSHOT_ZOOMIN_SCREENSHOT, 0),
  4.     EndContainer(),
  5.     NWidget(NWID_HORIZONTAL, NC_EQUALSIZE),

layers

  1. switch (FEAT_TRAINS,SELF, switch_hopper_wagon_layers, [
  2.  
  3.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 4 ? CB_FLAG_MORE_SPRITES  : 0) + PALETTE_USE_DEFAULT, 0x100),
  4.  
  5.   getbits(extra_callback_info1, 8, 8)

layers recolour

  1.  
  2. switch (FEAT_TRAINS,SELF, switch_mglv_hopper_layers, [
  3.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 4 ? CB_FLAG_MORE_SPRITES  : 0) + PALETTE_USE_DEFAULT, 0x100),
  4.   getbits(extra_callback_info1, 8, 8)
  5.   ]){

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

  1.             AILog.Info("Checking " + AITown.GetName(town) + " for an airport of type " + WrightAI.GetAirportTypeName(a));
  2.  
  3.             local rectangleCoordinates = this.TownAirportRadRect(a, town);
  4.             local tileList = AITileList();
  5.             tileList.AddRectangle(rectangleCoordinates[0], rectangleCoordinates[1]);

Paste #pizf1oyp4

  1.         local alltiles = AIMap.GetMapSize();
  2.         for (local tile = 0; tile < alltiles; tile++) {
  3.             AIAirport.GetNearestTown(AIBase.RandRange(alltiles), AIAirport.AT_INTERCON);
  4.         }

Paste #pf4yhqvai

  1. /usr/local/Cellar/freetype/2.9.1/lib/libfreetype.6.dylib:
  2.     /usr/local/opt/freetype/lib/libfreetype.6.dylib (compatibility version 23.0.0, current version 23.1.0)
  3.     /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
  4.     /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
  5.     /usr/local/opt/libpng/lib/libpng16.16.dylib (compatibility version 51.0.0, current version 51.0.0)
  6.     /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)

Paste #puupdzhpm

  1. are you one of the authors of this content, if so answer 'yes I am': yes I am
  2. Traceback (most recent call last):
  3.   File "musa.py", line 183, in <module>
  4.     main()
  5.   File "musa.py", line 153, in main

Paste #pfuhbl0yr

  1.             if (company_id != INVALID_COMPANY) {
  2.                 if (company_id >= MAX_COMPANIES) return CMD_ERROR;
  3.                 if (ais_to_start != 1) return CMD_ERROR;
  4.                 if (Company::IsValidID(company_id)) return CMD_ERROR;
  5.             }

Paste #pqbk9yybt

  1.             if (company_id != INVALID_COMPANY && company_id < MAX_COMPANIES) {
  2.                 if (ais_to_start != 1 || Company::IsValidID(company_id)) return CMD_ERROR;
  3.             }

Paste #pmxvuic0n

  1. Town *AirportGetNearestTownKdTree(const AirportSpec *as, const TileIterator &it)
  2. {
  3.     Town *nearest = NULL;
  4.     if (Town::GetNumItems() == 0) return nearest;