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

Function GetTileDesc_Trees

src/tree_cmd.cpp:735–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735static void GetTileDesc_Trees(TileIndex tile, TileDesc &td)
736{
737 TreeType tt = GetTreeType(tile);
738
739 if (IsInsideMM(tt, TREE_RAINFOREST, TREE_CACTUS)) {
740 td.str = STR_LAI_TREE_NAME_RAINFOREST;
741 } else {
742 td.str = tt == TREE_CACTUS ? STR_LAI_TREE_NAME_CACTUS_PLANTS : STR_LAI_TREE_NAME_TREES;
743 }
744
745 td.owner[0] = GetTileOwner(tile);
746}
747
748static void TileLoopTreesDesert(TileIndex tile)
749{

Callers

nothing calls this directly

Calls 3

GetTreeTypeFunction · 0.85
IsInsideMMFunction · 0.85
GetTileOwnerFunction · 0.85

Tested by

no test coverage detected