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

Method GetRandomBits

src/newgrf_house.cpp:223–227  ·  view source on GitHub ↗

virtual */

Source from the content-addressed store, hash-verified

221}
222
223/* virtual */ uint32_t HouseScopeResolver::GetRandomBits() const
224{
225 /* Note: Towns build houses over houses. So during construction checks 'tile' may be a valid but unrelated house. */
226 return this->not_yet_constructed ? this->initial_random_bits : GetHouseRandomBits(this->tile);
227}
228
229/* virtual */ uint32_t HouseScopeResolver::GetRandomTriggers() const
230{

Callers

nothing calls this directly

Calls 1

GetHouseRandomBitsFunction · 0.85

Tested by

no test coverage detected