diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-04-06 00:51:18 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-04-06 00:51:18 +0100 |
commit | d823e5f524403e5c278d3c863e93bac4b1d8d2ce (patch) | |
tree | 8b45cd6c32c685d109f4cc4e14d4149191f0899a /src/fixes.c | |
parent | 9f8ea7c75f1b0a114f60bc6b7a95fa51857e8a96 (diff) |
Fix some egregious and sloppy mistakes
Thanks Aciidz and Bill for spotting these.
Lesson (ostensibly) learned: Don't program while sleep-deprived!
Diffstat (limited to 'src/fixes.c')
-rw-r--r-- | src/fixes.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |