From 0df88acb20b91d8bdd763d3f82170e0216d57d58 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 14 Sep 2004 21:39:18 +0000 Subject: [PATCH] Allow us to connect even to broken MVDSVs. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@211 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 6409d913b..8e92757bf 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -1267,6 +1267,19 @@ void CL_Packet_f (void) return; } + if (Cmd_FromServer()) + { + if (adr.type == NA_IP) + if (adr.ip[0] == 127) + if (adr.ip[1] == 0) + if (adr.ip[2] == 0) + if (adr.ip[3] == 1) + { + Con_Printf ("^b^1Server is broken. Ignoring 'realip' packet request\n"); + return; + } + } + in = Cmd_Argv(2); out = send+4; send[0] = send[1] = send[2] = send[3] = 0xff;