Loading

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

  1. Index: src/gfxinit.cpp
  2. ===================================================================
  3. --- src/gfxinit.cpp (revision 27730)
  4. +++ src/gfxinit.cpp (working copy)
  5. @@ -230,6 +230,14 @@

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)

OpenTTD engines in JSON

  1. {
  2. "engines": [
  3.   {
  4.     "index": 0,
  5.     "cargo_type": 0,

Paste #p0cx02dud

  1. ReserveChangeInfo currently:
  2.             case GSF_ROADTYPES:
  3.                 cir = RoadTypeReserveInfo(index, numinfo, prop, buf);
  4.                 break;

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

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

  1. diff -r 1cb585403212 nml/grfstrings.py
  2. --- a/nml/grfstrings.py Sat Mar 04 19:32:22 2017 +0100
  3. +++ b/nml/grfstrings.py Sat Mar 04 19:57:24 2017 +0100
  4. @@ -944,7 +944,7 @@
  5.              parsed_string += SET_STRING_GENDER[str_type] + '\\{:02X}'.format(self.genders[self.strings[string_id].gender])

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

  1.     if (!IsTileFlat(tile) || !IsTileFlat(tile2)) {
  2. //      int z_upper_corner_n = TileHeight(tile);
  3. //      int z_upper_corner_s = TileHeight(TileAddByDiagDir(tile, AxisToDiagDir(axis == AXIS_X ? AXIS_Y : AXIS_X)));
  4.         int z_slope1;
  5.         Slope slope1 = GetTileSlope(tile, &z_slope1);

Paste #pcgfb4o2f

  1. uint32 RoadTypeIdentifier::Pack() const
  2. {
  3.     assert(this->basetype < ROADTYPE_END);
  4.     assert(this->subtype < ROADSUBTYPE_END);

Paste #pifab1uny

  1. /*
  2.  * CBA98 7654 3210
  3.  *             xxx <- RoadFlags
  4.  *   yyy xxxx x    <- RoadTypeIdentifier
  5.  *     x           <- _one_way_button_clicked
  6. */