From 691da05b7466e7d15122597b14f9e5a82b949ce5 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sun, 11 Oct 2009 18:34:15 +0000 Subject: [PATCH] Whoops.. don't make it overwrite cmds in case of recursive error. --- code/client/cl_main.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 67c80179..c3cefbff 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -467,14 +467,13 @@ void CL_AddReliableCommand(const char *cmd, qboolean isDisconnectCmd) // we must drop the connection // also leave one slot open for the disconnect command in this case. - if (!com_errorEntered && - ( - (isDisconnectCmd && unacknowledged > MAX_RELIABLE_COMMANDS) || - (!isDisconnectCmd && unacknowledged >= MAX_RELIABLE_COMMANDS) - ) - ) + if ((isDisconnectCmd && unacknowledged > MAX_RELIABLE_COMMANDS) || + (!isDisconnectCmd && unacknowledged >= MAX_RELIABLE_COMMANDS)) { - Com_Error(ERR_DROP, "Client command overflow"); + if(com_errorEntered) + return; + else + Com_Error(ERR_DROP, "Client command overflow"); } Q_strncpyz(clc.reliableCommands[++clc.reliableSequence & (MAX_RELIABLE_COMMANDS - 1)],