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

Method GetSettingDefaultValue

src/script/script_info.cpp:266–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266int ScriptInfo::GetSettingDefaultValue(const std::string &name) const
267{
268 for (const auto &item : this->config_list) {
269 if (item.name != name) continue;
270 return item.default_value;
271 }
272
273 /* There is no such setting */
274 return -1;
275}

Callers 1

GetSettingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected