MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / findTree

Function findTree

src/OpenLoco/src/World/Industry.cpp:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 static bool findTree(SurfaceElement* surface)
85 {
86 auto element = surface;
87 while (!element->isLast())
88 {
89 element++;
90 if (element->type() == ElementType::tree)
91 {
92 return true;
93 }
94 }
95 return false;
96 }
97
98 // 0x0045935F
99 void Industry::getStatusString(const char* buffer)

Callers 1

isFarmTileProducingMethod · 0.85

Calls 2

typeMethod · 0.80
isLastMethod · 0.45

Tested by

no test coverage detected