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

Function SaveRandomSeeds

src/core/random_func.hpp:55–59  ·  view source on GitHub ↗

* Saves the current seeds * @param storage Storage for saving */

Source from the content-addressed store, hash-verified

53 * @param storage Storage for saving
54 */
55inline void SaveRandomSeeds(SavedRandomSeeds *storage)
56{
57 storage->random = _random;
58 storage->interactive_random = _interactive_random;
59}
60
61/**
62 * Restores previously saved seeds

Callers 3

CmdAutoreplaceVehicleFunction · 0.85
CmdBuildVehicleFunction · 0.85
StartupOneEngineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected