Loading

Paste #paiimwyt5

  1. typedef std::vector<const ScriptConfigItem *> VisibleSettingsList;
  2. static VisibleSettingsList BuildVisibleSettingsList(CompanyID slot)
  3. {
  4.     VisibleSettingsList visible_settings; ///< List of visible AI settings
  5.     ScriptConfig *config_list = GetConfig(slot);

Paste #p8yedjtpa

  1. commit f437cd06b66357f1276e6d20cba18ebba28bc669 (HEAD -> req_desc)
  2. Author: Ingo von Borstel <planetmaker@openttd.org>
  3. Date:   Sat Feb 9 17:39:40 2019 +0100
  4.  
  5.     Change: Improve description of what is really needed to run OpenTTD

Paste #pgtcjzyqf

  1. OpenTTD.andythenorth(7213)$ valgrind ./bin/openttd
  2. ==94051== Memcheck, a memory error detector
  3. ==94051== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  4. ==94051== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
  5. ==94051== Command: ./bin/openttd

Paste #pmf3ej2io

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

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);

Paste #puya3ikkl

  1.     /**
  2.      * Get the difference in company value between the value of the provided company
  3.      * and the next ahead or behind in the rank list.
  4.      * @param company_id The Company ID in which the difference is based of.
  5.      * @param next_ahead_in_rank boolean value (use 'true' to compare with the next

https://imgur.com/wQuDOi5

  1. static bool GrowingOnWateredTile(TileIndex tile)
  2. {
  3.     TrackBits water_track = TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_WATER, 0));
  4.     if (water_track != TRACK_BIT_NONE) {
  5.         if (water_track == TRACK_BIT_UPPER || water_track == TRACK_BIT_LOWER || water_track == TRACK_BIT_LEFT || water_track == TRACK_BIT_RIGHT) {

Paste #pc2vjstnz

  1. void ScriptConfig::ResetChangeableSettings()
  2. {
  3.     if (this->info == NULL) return;
  4.  
  5.     for (SettingValueList::iterator it = this->settings.begin(); it != this->settings.end();) {

Paste #ppjgueisk

  1. typedef std::vector<const ScriptConfigItem *> VisibleSettingsList;
  2. static VisibleSettingsList BuildVisibleSettingsList(CompanyID slot)
  3. {
  4.     VisibleSettingsList visible_settings; ///< List of visible AI settings
  5.     ScriptConfig *config_list = GetConfig(slot);

Paste #pzbubvo7n

  1.     if (_game_mode != GM_MENU && AI::CanStartNew() && --_next_competitor_start == 0) {
  2.         /* Allow multiple AIs to possibly start in the same tick. */
  3.         do {
  4.             Backup<CompanyByte> cur_company(_current_company, FILE_LINE);
  5.             bool failed_to_start = !MaybeStartNewCompany();

Paste #pasmwbwr2

  1. 1 - dbg: [misc] [Collect Garbage] 540138635 [avg: 540138635.0]
  2. 2 - dbg: [misc] [Collect Garbage] 980850 [avg: 980850.0]
  3. 3 - dbg: [misc] [Collect Garbage] 1080357 [avg: 1080357.0]
  4. 4 - dbg: [misc] [Collect Garbage] 3437898 [avg: 3437898.0]
  5. 5 - dbg: [misc] [Collect Garbage] 1894220 [avg: 1894220.0]

Paste #pzk83sgm1

  1.         /* This station can be used, add it to st1/st2 */
  2.         if (st1 == NULL) {
  3.             st1 = st; best_rating1 = st->goods[type].rating;
  4.         } else {
  5.             if (owner == MAX_COMPANIES || st1->owner == OWNER_NONE || st->owner == OWNER_NONE || (st->owner == owner && st->owner == st1->owner) || (st->owner != owner && st1->owner != owner)) {

Paste #p2szdajkk

  1. $ curl -d "" http://localhost:8090/api/main/?time=2460000
  2. unsupported operation. POST: time,focus,move,view,fov
  3.  
  4. In [46]: url = "http://localhost:8090/api/main"
  5.     ...: a = requests.put(url, json={"time":2460000})

Paste #prdizgy5c

  1. (py36) planetmaker@aeolusmaximus-vortex:~/sternwarte/stellarium-scripting$ conda update spyder
  2. Solving environment: done
  3.  
  4. ## Package Plan ##