Merge pull request #560 from ineedbots/main

Fix workaround for bad client reliableAcknowledge DOS
This commit is contained in:
Maurice Heumann 2023-04-19 05:41:04 +02:00 committed by GitHub
commit a74f4ac7ea

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