From cb7bbff49f3cea0131879935c147a3ae69bee3e9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 13 Apr 2004 02:23:20 +0000 Subject: [PATCH] oops, fix some minor breakage --- qw/source/cl_main.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/qw/source/cl_main.c b/qw/source/cl_main.c index 56ac2e4f6..b59349aac 100644 --- a/qw/source/cl_main.c +++ b/qw/source/cl_main.c @@ -863,16 +863,17 @@ CL_ConnectionlessPacket (void) Con_Printf ("client command\n"); if (!cl_allow_cmd_pkt->int_val - || !NET_CompareBaseAdr (net_from, net_local_adr) - || !NET_CompareBaseAdr (net_from, net_loopback_adr)) { - if (cl_cmd_pkt_adr->string[0] - && NET_CompareBaseAdr (net_from, cl_cmd_packet_address)) { - allowremotecmd = false; // force password checking - } else { - Con_Printf ("Command packet from remote host. Ignored.\n"); - return; - } + || (!NET_CompareBaseAdr (net_from, net_local_adr) + && !NET_CompareBaseAdr (net_from, net_loopback_adr) + && (!cl_cmd_pkt_adr->string[0] + || !NET_CompareBaseAdr (net_from, + cl_cmd_packet_address)))) { + Con_Printf ("Command packet from remote host. Ignored.\n"); + return; } + if (cl_cmd_pkt_adr->string[0] + && NET_CompareBaseAdr (net_from, cl_cmd_packet_address)) + allowremotecmd = false; // force password checking s = MSG_ReadString (net_message); cmdtext = alloca (strlen (s) + 1);