From 9dda706952e8d5b5755a1bd5b302f00dae5c465f Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 27 Jun 2020 19:32:31 +0000 Subject: [PATCH] Fix conditionals for -log and -nolog args. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5716 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/qcctui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/qclib/qcctui.c b/engine/qclib/qcctui.c index f6bc7bcb8..c0842ff5f 100644 --- a/engine/qclib/qcctui.c +++ b/engine/qclib/qcctui.c @@ -154,9 +154,9 @@ int main (int argc, const char **argv) { if (!argv[i]) continue; - if (strcmp(argv[i], "-log")) + if (!strcmp(argv[i], "-log")) writelog = true; - else if (strcmp(argv[i], "-nolog")) + else if (!strcmp(argv[i], "-nolog")) writelog = false; } logfile = writelog?fopen("fteqcc.log", "wt"):false;