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

Method GetDefaultValue

src/settings.cpp:467–470  ·  view source on GitHub ↗

* Get the default value of the setting. * @return The default value. */

Source from the content-addressed store, hash-verified

465 * @return The default value.
466 */
467int32_t IntSettingDesc::GetDefaultValue() const
468{
469 return this->get_def_cb != nullptr ? this->get_def_cb(*this) : this->def;
470}
471
472/**
473 * Get the min/max range for the setting.

Callers 12

ParseValueMethod · 0.95
MakeValueValidMethod · 0.95
IsDefaultValueMethod · 0.95
ResetToDefaultMethod · 0.95
ResetAllMethod · 0.80
IConsoleGetSettingFunction · 0.80
OnQueryTextFinishedMethod · 0.80
DrawWidgetMethod · 0.80
OnQueryTextFinishedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected