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

Method ResetAll

src/settingentry_gui.cpp:138–141  ·  view source on GitHub ↗

Sets the given setting entry to its default value */

Source from the content-addressed store, hash-verified

136
137/* Sets the given setting entry to its default value */
138void SettingEntry::ResetAll()
139{
140 SetSettingValue(this->setting, this->setting->GetDefaultValue());
141}
142
143/**
144 * Set the button-depressed flags (#SettingsEntryFlag::LeftDepressed and #SettingsEntryFlag::RightDepressed) to a specified value

Callers 1

Calls 2

SetSettingValueFunction · 0.85
GetDefaultValueMethod · 0.80

Tested by

no test coverage detected