minor usability improvement for panel conditions
This commit is contained in:
parent
fdab365096
commit
300db83ef4
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue