diff options
author | Patric Stout <truebrain@openttd.org> | 2021-06-03 21:01:00 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-06-06 21:45:01 +0200 |
commit | 7572603c9d97215afe62cd79e25048237a637616 (patch) | |
tree | 9915b3b0034d8b7088ff6c2d6bfa07265c6e63a3 /src/settings.cpp | |
parent | d835a42c05f6a48f120b47e94a042848a20edd5c (diff) | |
download | openttd-7572603c9d97215afe62cd79e25048237a637616.tar.xz |
Codechange: remove the unused SLF_HEX flag
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 50dc38790..60ae20d82 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -274,8 +274,6 @@ void ListSettingDesc::FormatValue(char *buf, const char *last, const void *objec } if (IsSignedVarMemType(this->save.conv)) { buf += seprintf(buf, last, (i == 0) ? "%d" : ",%d", v); - } else if (this->save.conv & SLF_HEX) { - buf += seprintf(buf, last, (i == 0) ? "0x%X" : ",0x%X", v); } else { buf += seprintf(buf, last, (i == 0) ? "%u" : ",%u", v); } @@ -621,7 +619,7 @@ static void IniSaveSettings(IniFile *ini, const SettingTable &settings_table, co void IntSettingDesc::FormatValue(char *buf, const char *last, const void *object) const { uint32 i = (uint32)this->Read(object); - seprintf(buf, last, IsSignedVarMemType(this->save.conv) ? "%d" : (this->save.conv & SLF_HEX) ? "%X" : "%u", i); + seprintf(buf, last, IsSignedVarMemType(this->save.conv) ? "%d" : "%u", i); } void BoolSettingDesc::FormatValue(char *buf, const char *last, const void *object) const |