Loading

Paste #pxwsgn65k

  1. $ git co luacheck
  2.  
  3. # edit .luacheckrc
  4. $ git diff

Paste #pw0td0crh

  1. Index: src/station_cmd.cpp
  2. ===================================================================
  3. --- src/station_cmd.cpp (revision 27655)
  4. +++ src/station_cmd.cpp (working copy)
  5. @@ -2443,6 +2443,48 @@

Paste #pprhioggd

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

  1. static TreeType GetRandomTreeType(TileIndex tile, uint seed)
  2. {
  3.     uint8 th = TileHeight(tile);
  4.     uint limited_seed = seed / 16;
  5.     uint8 no_trees_height = _settings_game.game_creation.no_trees_height - limited_seed;

Paste #p528iusnc

  1. bool TileHasTree(TileIndex t, void *user_data)
  2. {
  3.     TreeType found_tree = *(TreeType*)user_data;
  4.  
  5.     if (IsValidTile(t) && IsTileType(t, MP_TREES)) {

Paste #pqyyrmave

  1. /**
  2.  * Make a lock section.
  3.  * @param t Tile to place the water lock section.
  4.  * @param lock_owner Owner of the lock.
  5.  * @param canal_owner Owner of the canal (only set if it's placed on canal).

Paste #pfyqwplu1

  1. /**
  2.  * Make a lock section.
  3.  * @param t Tile to place the water lock section.
  4.  * @param lock_owner Owner of the lock.
  5.  * @param canal_owner Owner of the canal (only set if it's placed on canal).

Paste #p5ytag0br

  1. [SDT_VAR]
  2. base     = GameSettings
  3. var      = game_creation.no_trees_height
  4. type     = SLE_UINT8
  5. from     = 196

Paste #pb70f60wf

  1. /**
  2.  * Build a piece of canal.
  3.  * @param tile end tile of stretch-dragging
  4.  * @param flags type of operation
  5.  * @param p1 start tile of stretch-dragging

Paste #pjtgnjoan

  1. /**
  2.  * Build a piece of canal.
  3.  * @param tile end tile of stretch-dragging
  4.  * @param flags type of operation
  5.  * @param p1 start tile of stretch-dragging

Paste #p9z28syhz

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

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

  1. ClearedObjectArea *IHaveNoIdeaFunction(TileIndex findclearedobject_tile, TileIndex coa_first_tile, TileIndex coa_area_tile, uint coa_area_w, uint coa_area_h)
  2. {
  3.     ClearedObjectArea *coa = FindClearedObject(findclearedobject_tile);
  4.     if (coa == NULL) {
  5.         coa = _cleared_object_areas.Append();

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

  1. /**
  2.  * Build a piece of canal.
  3.  * @param tile end tile of stretch-dragging
  4.  * @param flags type of operation
  5.  * @param p1 start tile of stretch-dragging