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

Method IsSameValue

src/settings.cpp:753–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753bool IntSettingDesc::IsSameValue(const IniItem *item, void *object) const
754{
755 int32_t item_value = static_cast<int32_t>(this->ParseValue(*item->value));
756 int32_t object_value = this->Read(object);
757 return item_value == object_value;
758}
759
760bool IntSettingDesc::IsDefaultValue(void *object) const
761{

Callers 1

IniSaveSettingsFunction · 0.45

Calls 4

ParseValueMethod · 0.95
ReadMethod · 0.95
GetVarMemTypeFunction · 0.85
compareMethod · 0.45

Tested by

no test coverage detected