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:
parent
3c0743f169
commit
9dda706952
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue