mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r15164) -Fix: don't list patches/settings with list_patches that are not valid anymore
This commit is contained in:
parent
28a641066e
commit
196085eb0f
|
@ -2105,6 +2105,7 @@ void IConsoleListPatches(const char *prefilter)
|
|||
IConsolePrintF(CC_WARNING, "All patches with their current value:");
|
||||
|
||||
for (const SettingDesc *sd = _patch_settings; sd->save.cmd != SL_END; sd++) {
|
||||
if (!SlIsObjectCurrentlyValid(sd->save.version_from, sd->save.version_to)) continue;
|
||||
if (prefilter != NULL) {
|
||||
if (strncmp(sd->desc.name, prefilter, min(strlen(sd->desc.name), strlen(prefilter))) != 0) continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue