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

Method GetRange

src/settings.cpp:476–479  ·  view source on GitHub ↗

* Get the min/max range for the setting. * @return The min/max range. */

Source from the content-addressed store, hash-verified

474 * @return The min/max range.
475 */
476std::tuple<int32_t, uint32_t> IntSettingDesc::GetRange() const
477{
478 return this->get_range_cb != nullptr ? this->get_range_cb(*this) : std::tuple(this->min, this->max);
479}
480
481/**
482 * Make the value valid and then write it to the setting.

Callers 3

GetValueParamsMethod · 0.95
MakeValueValidMethod · 0.95
IConsoleGetSettingFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected