]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
more rcon_secure cleanup
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 18 Oct 2009 19:53:53 +0000 (19:53 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 18 Oct 2009 19:53:53 +0000 (19:53 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9351 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index 44c15d6fdb06b20657ddc12e62268ce6d31c7176..efa23d1b70dd551d749034a6240503626dd108ef 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -2722,7 +2722,7 @@ static int NetConn_ServerParsePacket(lhnetsocket_t *mysocket, unsigned char *dat
                        char *endpos = string + length + 1; // one behind the NUL, so adding strlen+1 will eventually reach it
                        char password[64];
 
-                       if(rcon_secure.integer)
+                       if(rcon_secure.integer > 0)
                                return true;
 
                        for (i = 0;!ISWHITESPACE(*s);s++)