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

Method Setting

src/gamelog.cpp:413–418  ·  view source on GitHub ↗

* Logs change in game settings. Only non-networksafe settings are logged * @param name setting name * @param oldval old setting value * @param newval new setting value */

Source from the content-addressed store, hash-verified

411 * @param newval new setting value
412 */
413void Gamelog::Setting(const std::string &name, int32_t oldval, int32_t newval)
414{
415 assert(this->action_type == GLAT_SETTING);
416
417 this->Change(std::make_unique<LoggedChangeSettingChanged>(name, oldval, newval));
418}
419
420
421/**

Callers 1

ChangeValueMethod · 0.80

Calls 1

ChangeMethod · 0.95

Tested by

no test coverage detected