diff options
author | rubidium <rubidium@openttd.org> | 2009-01-20 12:03:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-20 12:03:06 +0000 |
commit | 07ed9999d2accb05c916192493cb6bda080c8ac5 (patch) | |
tree | 59ac729125474fb9877532dd11d1102ad042ff84 /src | |
parent | 206841ba5f526270a37ab002ebbae6bd533dedad (diff) | |
download | openttd-07ed9999d2accb05c916192493cb6bda080c8ac5.tar.xz |
(svn r15164) -Fix: don't list patches/settings with list_patches that are not valid anymore
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 73574bb1c..6440a7687 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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; } |