Fix workaround for bad client reliableAcknowledge DOS
We should be checking the difference > 0; not just the reliableAcknowledge.
This commit is contained in:
parent
c18b01fb55
commit
2f5980bcc8
@ -17,7 +17,7 @@ namespace patches
|
||||
|
||||
void sv_execute_client_messages_stub(game::client_s* client, game::msg_t* msg)
|
||||
{
|
||||
if (client->reliableAcknowledge < 0)
|
||||
if ((client->reliableSequence - client->reliableAcknowledge) < 0)
|
||||
{
|
||||
client->reliableAcknowledge = client->reliableSequence;
|
||||
network::send(client->address, "error", "EXE_LOSTRELIABLECOMMANDS");
|
||||
|
Loading…
Reference in New Issue
Block a user