1
0
Fork 0
forked from fte/fteqw

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
This commit is contained in:
Spoike 2020-06-27 19:32:31 +00:00
parent 3c0743f169
commit 9dda706952

View file

@ -154,9 +154,9 @@ int main (int argc, const char **argv)
{ {
if (!argv[i]) if (!argv[i])
continue; continue;
if (strcmp(argv[i], "-log")) if (!strcmp(argv[i], "-log"))
writelog = true; writelog = true;
else if (strcmp(argv[i], "-nolog")) else if (!strcmp(argv[i], "-nolog"))
writelog = false; writelog = false;
} }
logfile = writelog?fopen("fteqcc.log", "wt"):false; logfile = writelog?fopen("fteqcc.log", "wt"):false;