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

Method AddRectangle

src/script/api/script_tilelist.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void ScriptTileList::AddRectangle(TileIndex t1, TileIndex t2)
34{
35 if (!::IsValidTile(t1)) return;
36 if (!::IsValidTile(t2)) return;
37
38 TileArea ta(t1, t2);
39 for (TileIndex t : ta) this->AddItem(t.base());
40}
41
42void ScriptTileList::AddTile(TileIndex tile)
43{

Callers

nothing calls this directly

Calls 3

IsValidTileFunction · 0.85
AddItemMethod · 0.80
baseMethod · 0.45

Tested by

no test coverage detected