mirror of https://github.com/OpenTTD/OpenTTD
(svn r24650) -Fix (r24647, r24648): fixing logic errors is hard
parent
c094371963
commit
73858a75b3
|
@ -1343,7 +1343,7 @@ bool SettingEntry::UpdateFilterState(StringFilter &filter, bool force_visible, R
|
||||||
bool visible = true;
|
bool visible = true;
|
||||||
switch (this->flags & SEF_KIND_MASK) {
|
switch (this->flags & SEF_KIND_MASK) {
|
||||||
case SEF_SETTING_KIND: {
|
case SEF_SETTING_KIND: {
|
||||||
if (force_visible || !filter.IsEmpty()) {
|
if (!force_visible && !filter.IsEmpty()) {
|
||||||
/* Process the search text filter for this item. */
|
/* Process the search text filter for this item. */
|
||||||
filter.ResetState();
|
filter.ResetState();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue