Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
Paste #pxwsgn65k
Show paste
$
git
co
luacheck
# edit .luacheckrc
$
git diff
Paste #pw0td0crh
Show paste
Index
:
src
/
station_cmd.
cpp
===================================================================
---
src
/
station_cmd.
cpp
(
revision
27655
)
+++
src
/
station_cmd.
cpp
(
working copy
)
@@
-
2443
,
6
+
2443
,
48
@@
Paste #pprhioggd
Show paste
/**
* Build a ship depot.
* @param tile tile where ship depot is built
* @param flags type of operation
* @param p1 bit 0 depot orientation (Axis)
Paste #pqo1srqxj
Show paste
static
TreeType GetRandomTreeType
(
TileIndex tile, uint seed
)
{
uint8
th
=
TileHeight
(
tile
)
;
uint limited_seed
=
seed
/
16
;
uint8
no_trees_height
=
_settings_game.
game_creation
.
no_trees_height
-
limited_seed
;
Paste #p528iusnc
Show paste
bool
TileHasTree
(
TileIndex t,
void
*
user_data
)
{
TreeType found_tree
=
*
(
TreeType
*
)
user_data
;
if
(
IsValidTile
(
t
)
&&
IsTileType
(
t, MP_TREES
)
)
{
Paste #pqyyrmave
Show paste
/**
* Make a lock section.
* @param t Tile to place the water lock section.
* @param lock_owner Owner of the lock.
* @param canal_owner Owner of the canal (only set if it's placed on canal).
Paste #pfyqwplu1
Show paste
/**
* Make a lock section.
* @param t Tile to place the water lock section.
* @param lock_owner Owner of the lock.
* @param canal_owner Owner of the canal (only set if it's placed on canal).
Paste #p5ytag0br
Show paste
[
SDT_VAR
]
base
=
GameSettings
var
=
game_creation.no_trees_height
type
=
SLE_UINT8
from
=
196
Paste #pb70f60wf
Show paste
/**
* Build a piece of canal.
* @param tile end tile of stretch-dragging
* @param flags type of operation
* @param p1 start tile of stretch-dragging
Paste #pjtgnjoan
Show paste
/**
* Build a piece of canal.
* @param tile end tile of stretch-dragging
* @param flags type of operation
* @param p1 start tile of stretch-dragging
Paste #p9z28syhz
Show paste
/**
* Append an orthogonal area of cleared tiles in _cleared_object_areas, then return the pointer.
* @param cleared_tile The tile being cleared, which then causes the whole area to be cleared.
* @param ta_tile The top most tile of the area to be appended as cleared.
* @param w The width (x) of the area to be appended as cleared.
Paste #p41r06sx1
Show paste
/**
* Append an orthogonal area of cleared tiles in _cleared_object_areas, then return with the list.
* @param cleared_tile The tile being cleared, which then causes the whole object to be cleared.
* @param coa_tile The top most tile of the area to be appended as cleared.
* @param coa_w The width (x) of the area to be appended as cleared.
Paste #pmp6dybbk
Show paste
ClearedObjectArea
*
IHaveNoIdeaFunction
(
TileIndex findclearedobject_tile, TileIndex coa_first_tile, TileIndex coa_area_tile, uint coa_area_w, uint coa_area_h
)
{
ClearedObjectArea
*
coa
=
FindClearedObject
(
findclearedobject_tile
)
;
if
(
coa
==
NULL
)
{
coa
=
_cleared_object_areas.
Append
(
)
;
Paste #ppcle1nv7
Show paste
/**
* Build a ship depot.
* @param tile tile where ship depot is built
* @param flags type of operation
* @param p1 bit 0 depot orientation (Axis)
Paste #pispecj9e
Show paste
/**
* Build a piece of canal.
* @param tile end tile of stretch-dragging
* @param flags type of operation
* @param p1 start tile of stretch-dragging
«
1
2
...
66
67
68
69
70
71
72
...
133
134
»