minor usability improvement for panel conditions

This commit is contained in:
Tim Felgentreff 2022-06-17 22:02:32 +02:00
parent fdab365096
commit 300db83ef4

View file

@ -237,7 +237,9 @@ static bool CanShowContent(const ConditionPanel *condition, const CUnit &unit)
if (f >= -v) {
return false;
}
} else {
} else if (v != -1) {
// special case: the condition "<1" should apply
// to units that do not have the variable at all
return false;
}
} else if (v > CONDITION_ONLY) {