From d823e5f524403e5c278d3c863e93bac4b1d8d2ce Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 6 Apr 2022 00:51:18 +0100 Subject: Fix some egregious and sloppy mistakes Thanks Aciidz and Bill for spotting these. Lesson (ostensibly) learned: Don't program while sleep-deprived! --- src/fixes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fixes.c') diff --git a/src/fixes.c b/src/fixes.c index e0dd6f1..eeac1c3 100644 --- a/src/fixes.c +++ b/src/fixes.c @@ -85,9 +85,9 @@ void fixes_apply(void) { // something...). if (GAMETYPE_MATCHES(L4D2x)) { struct con_var *v = con_findvar("mat_queue_mode"); - if (v && (v->parent->base.flags & CON_ARCHIVE)) { + if (v && !(v->parent->base.flags & CON_ARCHIVE)) { // not already fixed v->parent->base.flags = v->parent->base.flags - & ~(CON_DEVONLY | CON_HIDDEN) | CON_ARCHIVE; + & ~(CON_HIDDEN | CON_DEVONLY) | CON_ARCHIVE; v->parent->hasmax = true; v->parent->maxval = 0; } } -- cgit v1.2.3