From eefc86726238609087b700dfca71fd0515a1a34a Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 4 Sep 2004 17:49:15 +0000 Subject: [PATCH] So that client can now connect to dodgy servers that expect clc_move before sending a serverinfo. (sol.net) git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@123 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_input.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/engine/client/cl_input.c b/engine/client/cl_input.c index ad0cc094b..eed129252 100644 --- a/engine/client/cl_input.c +++ b/engine/client/cl_input.c @@ -74,7 +74,7 @@ void KeyDown (kbutton_t *b) int pnum; c = Cmd_Argv(0); pnum = atoi(c+strlen(c)-1); - if (c[1] == 'b' && !atoi(c+strlen(c)-2)) + if (c[1] == 'b'&&c[2] == 'u' && !atoi(c+strlen(c)-2)) pnum = 0; else if (pnum)pnum--; @@ -110,7 +110,7 @@ void KeyUp (kbutton_t *b) int pnum; c = Cmd_Argv(0); pnum = atoi(c+strlen(c)-1); - if (c[1] == 'b' && !atoi(c+strlen(c)-2)) + if (c[1] == 'b'&&c[2] == 'u' && !atoi(c+strlen(c)-2)) pnum = 0; else if (pnum)pnum--; @@ -747,6 +747,8 @@ void CL_SendCmd (void) int msecstouse; qboolean dontdrop=false; + int clientcount; + if (cls.demoplayback != DPB_NONE) { if (cls.demoplayback == DPB_MVD) @@ -852,7 +854,10 @@ void CL_SendCmd (void) buf.maxsize = 128; buf.cursize = 0; buf.data = data; - if (cl.splitclients) //wait for server data before sending clc_move stuff + clientcount = cl.splitclients; + if (!clientcount) + clientcount = 1; + if (1) //wait for server data before sending clc_move stuff { #ifdef Q2CLIENT if (cls.q2server) @@ -899,7 +904,7 @@ void CL_SendCmd (void) } msecs -= msecstouse; firstsize=0; - for (plnum = 0; plnumlightlevel = lightlev;