Loading

Paste #psgnsq161

  1. import math
  2. import os
  3. from os import remove
  4. from PIL import Image

Paste #p68rqetdr

  1. /**
  2.  * Is this tile a target for ships to get to a nearby dock?
  3.  * @param tile Tile to query
  4.  * @param diagdir Optional diagonal direction to look for axis compatibility.
  5.  * @return True if the tile is a target for ships to get to a nearby dock.

Paste #p1rucchis

  1. $ tar tvf ~/.openttd/content_download/newgrf/OpenGFX_Trains-0.3.0.tar
  2. drwxr-xr-x www-data/www-data 0 2012-01-21 23:16 OpenGFX_Trains-0.3.0/
  3. -rw-r--r-- www-data/www-data 17987 2012-01-21 23:16 OpenGFX_Trains-0.3.0/license.txt
  4. -rw-r--r-- www-data/www-data 280435 2012-01-21 23:16 OpenGFX_Trains-0.3.0/ogfx-trains.grf
  5. -rw-r--r-- www-data/www-data   7054 2012-01-21 23:16 OpenGFX_Trains-0.3.0/changelog.txt

Paste #pghr7xyan

  1. static inline Owner GetCanalOwner(TileIndex t)
  2. {
  3.     assert(GetWaterClass(t) == WATER_CLASS_CANAL);
  4.  
  5.     if (IsCanal(t)) return GetTileOwner(t);

Paste #pfvunlauc

  1.             } else {
  2.                 if ((ind_behav & INDUSTRYBEH_BUILT_ONWATER) && _settings_game.construction.build_on_competitor_canal) {
  3.                     if (IsWaterTile(cur_tile) && IsCanal(cur_tile)) {
  4.                         CommandCost ret = CheckTileOwnership(cur_tile);
  5.                         if (ret.Failed() && GetTileOwner(cur_tile) >= MAX_COMPANIES) return ret;

Paste #p41r06sx1

  1. /**
  2.  * Append an orthogonal area of cleared tiles in _cleared_object_areas, then return with the list.
  3.  * @param cleared_tile The tile being cleared, which then causes the whole object to be cleared.
  4.  * @param coa_tile The top most tile of the area to be appended as cleared.
  5.  * @param coa_w The width (x) of the area to be appended as cleared.

Paste #pyjs64de7

  1. Index: src/saveload/ai_sl.cpp
  2. ===================================================================
  3. --- src/saveload/ai_sl.cpp  (revision 27582)
  4. +++ src/saveload/ai_sl.cpp  (working copy)
  5. @@ -83,7 +83,7 @@

Paste #pyey7yzjx

  1. diff -r 5ec05bde6098 nml/grfstrings.py
  2. --- a/nml/grfstrings.py Sun Oct 16 19:30:32 2016 +0200
  3. +++ b/nml/grfstrings.py Thu Dec 22 21:09:30 2016 +0100
  4. @@ -207,6 +207,7 @@
  5.  'CARGO_LONG':     {'unicode': r'\UE09A\1B', 'ascii': r'\9A\1B', 'size': 2 * 2},

Paste #psmxrrjea

  1. Severity    Code    Description Project File    Line    Suppression State
  2. Warning C6387   'comment+pos' could be '0':  this does not adhere to the specification for the function 'memcpy'. See line 252 for an earlier location where this can occur settingsgen d:\openttd\trunk\src\ini_load.cpp   253 Active
  3. Warning C6001   Using uninitialized memory '*this'. strgen  d:\openttd\trunk\src\strgen\strgen_base.cpp 73  Active
  4. Warning C6386   Buffer overrun while writing to 'words':  the writable size is '((max(expected, 5)))*sizeof(const char *)' bytes, but '8' bytes might be written.   strgen  d:\openttd\trunk\src\strgen\strgen_base.cpp 410 Active
  5. Warning C6385   Reading invalid data from 'words':  the

Paste #ppcle1nv7

  1. /**
  2.  * Build a ship depot.
  3.  * @param tile tile where ship depot is built
  4.  * @param flags type of operation
  5.  * @param p1 bit 0 depot orientation (Axis)

Paste #pu9wsloj2

  1. diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp
  2. index 797ead1..67e8329 100644
  3. --- a/src/bridge_gui.cpp
  4. +++ b/src/bridge_gui.cpp
  5. @@ -36,6 +36,8 @@ static BridgeType _last_railbridge_type = 0;

Paste #prgjo8rdm

  1. Index: src/station_cmd.cpp
  2. ===================================================================
  3. --- src/station_cmd.cpp (revision 27632)
  4. +++ src/station_cmd.cpp (working copy)
  5. @@ -2500,10 +2500,25 @@

Paste #pm2z02db9

  1.     if (!IsTileFlat(tile_cur)) {
  2.         if (GetTileZ(tile) == 0 && GetTileZ(tile_cur) == 0) return_cmd_error(STR_ERROR_SITE_UNSUITABLE);
  3.         int z_tile = GetTileMaxZ(tile);
  4.         int z_tile_cur = GetTileMaxZ(tile_cur);
  5.         bool z = Delta(z_tile_cur, z_tile) == 0;

Paste #piitjc2nq

  1. Option 1:
  2. Define road/tramtype using different "allocate label" properties.
  3. 0x07: Allocate road label
  4. 0x08: Allocate tram label

Paste #pzvocwc08

  1. // Automatically generated by GRFCODEC. Do not modify!
  2. // (Info version 7)
  3. // Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
  4.    0 sprites/trafficlights.pcx 18 8 01 20 20 0 0
  5.    1 sprites/trafficlights.pcx 50 8 01 31 31 0 0