MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / AddTile

Method AddTile

src/script/api/script_tilelist.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void ScriptTileList::AddTile(TileIndex tile)
43{
44 if (!::IsValidTile(tile)) return;
45
46 this->AddItem(tile.base());
47}
48
49void ScriptTileList::RemoveRectangle(TileIndex t1, TileIndex t2)
50{

Calls 3

IsValidTileFunction · 0.85
AddItemMethod · 0.80
baseMethod · 0.45

Tested by

no test coverage detected