Whoops.. don't make it overwrite cmds in case of recursive error.

This commit is contained in:
Thilo Schulz 2009-10-11 18:34:15 +00:00
parent fee5a4a157
commit 691da05b74

View file

@ -467,13 +467,12 @@ void CL_AddReliableCommand(const char *cmd, qboolean isDisconnectCmd)
// we must drop the connection // we must drop the connection
// also leave one slot open for the disconnect command in this case. // also leave one slot open for the disconnect command in this case.
if (!com_errorEntered && if ((isDisconnectCmd && unacknowledged > MAX_RELIABLE_COMMANDS) ||
( (!isDisconnectCmd && unacknowledged >= MAX_RELIABLE_COMMANDS))
(isDisconnectCmd && unacknowledged > MAX_RELIABLE_COMMANDS) ||
(!isDisconnectCmd && unacknowledged >= MAX_RELIABLE_COMMANDS)
)
)
{ {
if(com_errorEntered)
return;
else
Com_Error(ERR_DROP, "Client command overflow"); Com_Error(ERR_DROP, "Client command overflow");
} }