Fix workaround for bad client reliableAcknowledge DOS

We should be checking the difference > 0; not just the reliableAcknowledge.
This commit is contained in:
ineed bots 2023-04-18 21:29:18 -06:00
parent c18b01fb55
commit 2f5980bcc8

View File

@ -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");