mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-22 07:51:20 +00:00
got the logic of the if mixed up
This commit is contained in:
parent
de22be39ba
commit
ac94390460
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue