]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
fix all the () problems, and make gcc warn for them
[xonotic/darkplaces.git] / host_cmd.c
index cdda57cc6f43b1f2464cee6cb203f537cda91e88..949c4802cda10906b1ab76b66150a95ceac4a2f1 100644 (file)
@@ -2361,9 +2361,9 @@ void Host_PQRcon_f (void)
        lhnetsocket_t *mysocket;
        char peer_address[64];
 
-       if (!rcon_password.string || !rcon_password.string[0])
+       if (!rcon_password.string || !rcon_password.string[0] || rcon_secure.integer)
        {
-               Con_Printf ("You must set rcon_password before issuing an rcon command.\n");
+               Con_Printf ("You must set rcon_password before issuing an pqrcon command, and rcon_secure must be 0.\n");
                return;
        }
 
@@ -2660,7 +2660,7 @@ void Host_Packet_f (void) // credit: taken from QuakeWorld
 
        in = Cmd_Argv(2);
        out = send+4;
-       send[0] = send[1] = send[2] = send[3] = 0xff;
+       send[0] = send[1] = send[2] = send[3] = -1;
 
        l = (int)strlen (in);
        for (i=0 ; i<l ; i++)