Loading

Paste #pfy8hd19r

  1. [alias]
  2.     rb = "!f() { git fetch upstream && git rebase upstream/master; }; f"
  3.     pr = "!f() { git fetch -fu ${2:-$(git remote | grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
  4.     pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"

Paste #pntip1imo

  1. /*
  2.  * This file is aimed to provide an example on how to code a basic industry in NML.
  3.  * To keep the code readable, not every property or variable is documented in
  4.  * detail, refer to the object-specific reference in the documentation.
  5.  *

Paste #peqw5lkx9

  1. /* $Id$ */
  2.  
  3. /*
  4.  * This file is part of OpenTTD.
  5.  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

Paste #ppmwqrmbo

  1. (env) OpenTTD-website.andythenorth(17)$ python fetch-downloads.py
  2. Traceback (most recent call last):
  3.   File "fetch-downloads.py", line 11, in <module>
  4.     import aiohttp
  5.   File "/Users/andy2/workspace/buildout.python/python-3.6/lib/python3.6/site-packages/aiohttp/__init__.py", line 6, in <module>

Paste #pigvrkqj9

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

Paste #pdn5yogmn

  1.     virtual void SetStringParameters(int widget) const
  2.     {
  3.         switch (widget) {
  4.             case WID_AIS_CAPTION:
  5.                 SetDParam(0, (this->slot == OWNER_DEITY) ? STR_AI_SETTINGS_CAPTION_GAMESCRIPT : STR_AI_SETTINGS_CAPTION_AI);

Paste #peq6rjqa0

  1. // default spriteset templates
  2.         template spriteset_template_symmetric_unreversed_open_car_pony_gen_1A_unflipped(y) {
  3.                 //[left_x, upper_y, width, height, offset_x, offset_y]
  4.                 [180, y, 8, 29, -3, -24 ]
  5.                 [193, y, 26, 24, -6, -19 ]

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;

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

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

Paste #pefzfn0mf

  1. void MaybeStartNewCompany() {
  2.     uint current_companies = (uint)Company::GetNumItems();
  3.  
  4.     /* Count number of existing AI only companies. */
  5.     uint current_ais = 0;

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

  1.                 if (!AITown.HasStatue(town)) {
  2.                     if (AITown.IsActionAvailable(town, AITown.TOWN_ACTION_BUILD_STATUE)) {
  3.                         local perform_action = true;
  4.                         if (cvgs.IsCompanyValueGSGame() && cvgs.GetCompanyIDRank(AICompany.ResolveCompanyID(AICompany.COMPANY_SELF)) == 1 && cvgs.RankingList().Count() > 1) {
  5.                             AILog.Info("Cost of perfoming action: " + TestPerformTownAction().TestCost(town, AITown.TOWN_ACTION_BUILD_STATUE) + " ; Value difference to company behind: " + cvgs.GetCompanyIDDiffToNext(AICompany.ResolveCompanyID(AICompany.COMPANY_SELF), false));
  6.                             if (TestPerformTownAction().TestCost(town, AITown.TOWN_ACTION_BUILD_STATUE) > cvgs.GetCompanyIDDiffToNext(AIC

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