mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-01-31 03:10:33 +00:00
Whoops.. don't make it overwrite cmds in case of recursive error.
This commit is contained in:
parent
fee5a4a157
commit
691da05b74
1 changed files with 6 additions and 7 deletions
|
@ -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)],
|
||||
|
|
Loading…
Reference in a new issue