mirror of https://github.com/OpenTTD/OpenTTD.git
Codechange: remove the unused SLF_HEX flag
This commit is contained in:
parent
d835a42c05
commit
7572603c9d
|
@ -490,8 +490,6 @@ enum VarTypes {
|
|||
SLF_NO_NETWORK_SYNC = 1 << 10, ///< do not synchronize over network (but it is saved if SLF_NOT_IN_SAVE is not set)
|
||||
SLF_ALLOW_CONTROL = 1 << 11, ///< allow control codes in the strings
|
||||
SLF_ALLOW_NEWLINE = 1 << 12, ///< allow new lines in the strings
|
||||
SLF_HEX = 1 << 13, ///< print numbers as hex in the config file (only useful for unsigned)
|
||||
/* 2 more possible flags */
|
||||
};
|
||||
|
||||
typedef uint32 VarType;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue