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

Method InitializeRandomizers

src/script/api/script_object.cpp:347–353  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

345}
346
347/* static */ void ScriptObject::InitializeRandomizers()
348{
349 Randomizer random = _random;
350 for (Owner owner = OWNER_BEGIN; owner < OWNER_END; ++owner) {
351 ScriptObject::GetRandomizer(owner).SetSeed(random.Next());
352 }
353}
354
355/* static */ SQInteger ScriptObject::Constructor(HSQUIRRELVM)
356{

Callers

nothing calls this directly

Calls 2

SetSeedMethod · 0.80
NextMethod · 0.45

Tested by

no test coverage detected