got the logic of the if mixed up

This commit is contained in:
Bill Currie 2001-02-14 22:26:57 +00:00
parent de22be39ba
commit ac94390460

View file

@ -883,8 +883,8 @@ CL_ConnectionlessPacket (void)
Con_Printf ("client command\n");
if (!cl_allow_cmd_pkt->int_val
&& (*(unsigned int *) net_from.ip != *(unsigned int *) net_local_adr.ip
&& *(unsigned int *) net_from.ip != htonl (INADDR_LOOPBACK))) {
|| ((*(unsigned int *) net_from.ip != *(unsigned int *) net_local_adr.ip
&& *(unsigned int *) net_from.ip != htonl (INADDR_LOOPBACK)))) {
Con_Printf ("Command packet from remote host. Ignored.\n");
return;
}