Loading

Paste #ppuzyudqr

  1. [remote "origin"]
  2.     url = git@github.com:OpenTTD/website.git
  3.     pushurl = git@github.com:planetmaker/website.git
  4.     fetch = +refs/heads/*:refs/remotes/origin/*
  5.         fetch = +refs/pull/*/head:refs/remotes/origin/pr/*

Paste #pyhxujcqj

  1. diff --git a/nml/parser.py b/nml/parser.py
  2. index 8d28382..d23764b 100644
  3. --- a/nml/parser.py
  4. +++ b/nml/parser.py
  5. @@ -441,8 +441,12 @@ class NMLParser(object):

Paste #pgd6yvzjo

  1. //On the Company Value GS code:
  2. //-------------------------------
  3.  
  4. function SCPManager::ReceivedSettingCommand(message, self)
  5. {

Paste #pthkwwqir

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

  1. /**
  2.  * Returns the direction of a corner in relation to the centre of the tile
  3.  *
  4.  * @param corner A #Corner.
  5.  * @return The direction the corner is in relation to the center of the tile. Or INVALID_DIR if the corner is not valid.

Paste #prohqfkhe

  1.     /* Public methods */
  2.  
  3.     /**
  4.      * Is this a Company Value GS game?
  5.      * @return true, if the game has a GS that respond to Company Value GS

Paste #pmwjhmzht

  1. private:
  2.     bool IsEditableItem(const ScriptConfigItem config_item) const
  3.     {
  4.         if (_game_mode == GM_MENU) return true;

Paste #ppigripza

  1. STR_CONFIG_SETTING_TOWN_CARGOGENMODE                            :Town cargo generation: {STRING2}
  2. STR_CONFIG_SETTING_TOWN_CARGOGENMODE_HELPTEXT                   :How much cargo is produced by houses in towns, relative to the overall population of the town.{}Linear growth: A town twice the size generates twice the amount of passengers.{}Quadratic growth: a town with twice the population generates four times as many passengers.
  3. STR_CONFIG_SETTING_TOWN_CARGOGENMODE_BITCOUNT                   :Linear
  4. STR_CONFIG_SETTING_TOWN_CARGOGENMODE_ORIGINAL                   :Quadratic (original)

Paste #pnvxcsvic

  1. struct { TileIndex opposite_tile, next_tile_1, next_tile_2; TrackBits opposite_track, next_track_1, next_track_2; } table[] = {
  2.     { TileDiffXY(-1,  1), TileDiffXY( 0,  1), TileDiffXY(-1,  0), TRACK_BIT_LEFT,  _settings_game.pf.forbid_90_deg ? TRACK_BIT_X | TRACK_BIT_RIGHT : TRACK_BIT_3WAY_NE, _settings_game.pf.forbid_90_deg ? TRACK_BIT_Y | TRACK_BIT_RIGHT : TRACK_BIT_3WAY_SE },
  3.     { TileDiffXY(-1, -1), TileDiffXY(-1,  0), TileDiffXY( 0, -1), TRACK_BIT_LOWER, _settings_game.pf.forbid_90_deg ? TRACK_BIT_Y | TRACK_BIT_UPPER : TRACK_BIT_3WAY_NW, _settings_game.pf.forbid_90_deg ? TRACK_BIT_X | TRACK_BIT_UPPER : TRACK_BIT_3WAY_NE },
  4.     { TileDiffXY( 1, -1), TileDiffXY( 0, -1), Ti

https://imgur.com/wQuDOi5

  1. struct { TileIndexDiff opposite_tile, next_tile_1, next_tile_2; TrackBits opposite_track, next_track_1, next_track_2; } table[] = {
  2.     { TileDiffXY(-1,  1), TileDiffXY( 0,  1), TileDiffXY(-1,  0), TRACK_BIT_LEFT,  _settings_game.pf.forbid_90_deg ? TRACK_BIT_X | TRACK_BIT_RIGHT : TRACK_BIT_3WAY_NE, _settings_game.pf.forbid_90_deg ? TRACK_BIT_Y | TRACK_BIT_RIGHT : TRACK_BIT_3WAY_SE },
  3.     { TileDiffXY(-1, -1), TileDiffXY(-1,  0), TileDiffXY( 0, -1), TRACK_BIT_LOWER, _settings_game.pf.forbid_90_deg ? TRACK_BIT_Y | TRACK_BIT_UPPER : TRACK_BIT_3WAY_NW, _settings_game.pf.forbid_90_deg ? TRACK_BIT_X | TRACK_BIT_UPPER : TRACK_BIT_3WAY_NE },
  4.     { TileDiffXY( 1, -1), TileDiffXY( 0, -1)

Paste #pzhxcbdxc

  1. --Bridge--
  2.   Bridge -1
  3.     IsValidBridge():    false
  4.     GetName():
  5.      VT_RAIL:            (null : 0x00000000)

Paste #pceswwkbb

  1.     /* Check whether the third tile is an aqueduct head, or a water tile
  2.      * with one corner raised with or without a rail track, or a buoy. */
  3.     if (!IsTileType(tile_cur, MP_WATER)) {
  4.         if (IsTileType(tile_cur, MP_TUNNELBRIDGE)) {
  5.             if (GetTunnelBridgeTransportType(tile_cur) != TRANSPORT_WATER) return_cmd_error(STR_ERROR_SITE_UNSUITABLE);

Paste #pqyqwtopp

  1. void ScriptConfig::AddRandomDeviation()
  2. {
  3.     for (ScriptConfigItemList::const_iterator it = this->GetConfigList()->begin(); it != this->GetConfigList()->end(); it++) {
  4.         /* start_date = 0 is a special case, where random deviation does not occur. */
  5.         if ((*it).random_deviation != 0 || typeid(*this) == typeid(AIConfig) && StrEmpty((*it).description) && strcmp((*it).name, "start_date") == 0 && this->GetSetting((*it).name) != 0) {

Paste #phqik4jng

  1. combination of switch expression syntax with "[expression1, ...]" for multiple things, and switch/layout body syntax with "foo: bar;"
  2.  
  3. produce(switch_name, [
  4.   IORE: expression;
  5.   COAL: expression;

Paste #pwpmcjp7l

  1. diff --git a/src/script/api/squirrel_export.sh b/src/script/api/squirrel_export.sh
  2. index 92bd434b93..9a4d9ce7cf 100755
  3. --- a/src/script/api/squirrel_export.sh
  4. +++ b/src/script/api/squirrel_export.sh
  5. @@ -50,6 +50,7 @@ if [ -z "$1" ]; then