Loading

Paste #pwumtlbr3

  1.     uint it_x = TileX(it);
  2.     uint it_y = TileY(it);
  3.     uint max_it_x = it_x + as->size_x - 1;
  4.     uint max_it_y = it_y + as->size_y - 1;
  5.     while (!IsValidTile(TileXY(max_it_x, it_y))) max_it_x--;

Paste #pmxvuic0n

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

Paste #psjlkah9v

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

  1. $ aptitude search evolve
  2. p   evolver                                                           - Surface Evolver                                                            
  3. p   evolver-doc                                                       - Surface Evolver - doc                                                      
  4. p   evolver-nox                                                       - Surface Evolver - with no X support                                        
  5. p   evolver-ogl                                                       - Surface Evolver - with OpenGL display                                      
  6. p   python-pyevolve

Paste #pem5apk5e

  1.  railtypetable {
  2.     RAIL,
  3.     ELRL,
  4.     MGLV,
  5.     METRO: [MTRO, "3RDR", ELRL],

Paste #pwdz0xly8

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

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

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

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;

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;

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;

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;