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

Method AnchorUnchangeableSettings

src/script/script_config.cpp:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void ScriptConfig::AnchorUnchangeableSettings()
75{
76 for (const auto &item : *this->GetConfigList()) {
77 if (!item.flags.Test(ScriptConfigFlag::InGame)) {
78 this->SetSetting(item.name, this->GetSetting(item.name));
79 }
80 }
81}
82
83int ScriptConfig::GetSetting(const std::string &name) const
84{

Callers 2

StartNewMethod · 0.80
StartNewMethod · 0.80

Calls 4

GetConfigListMethod · 0.95
SetSettingMethod · 0.95
GetSettingMethod · 0.95
TestMethod · 0.80

Tested by

no test coverage detected