From fc136cca4870e0256ccad0a81a35e34c378414a9 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Tue, 16 Aug 2011 16:43:10 +0000 Subject: [PATCH] warning fix (RK: ai == 1 was wrong but ai != 0 should have a better behavior) git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6583 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/protos.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/protos.h b/source/src/protos.h index dc1b8131..048ca52f 100644 --- a/source/src/protos.h +++ b/source/src/protos.h @@ -914,7 +914,7 @@ struct servercommandline case 'i': ip = a; break; case 'm': master = a; break; case 'N': logident = a; break; - case 'l': loggamestatus = a; break; + case 'l': loggamestatus = ai != 0; break; case 'F': if(isdigit(*a) && ai >= 0 && ai <= 7) syslogfacility = ai; break; case 'T': logtimestamp = true; break; case 'L':