2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-14 15:48:04 +03:00

SV_ExecuteClientMessage: Don't handle packets when client has already dropped

This commit is contained in:
s1lentq 2021-04-22 17:23:56 +07:00
parent ebefe19023
commit 9a171db348

View File

@ -1803,6 +1803,12 @@ void SV_ExecuteClientMessage(client_t *cl)
return;
g_RehldsHookchains.m_HandleNetCommand.callChain(SV_HandleClientMessage_api, apiClient, c);
#ifdef REHLDS_FIXES
// FIXED: Don't handle remaining packets if got dropclient above
if (!cl->connected && !cl->active && !cl->spawned)
break;
#endif // REHLDS_FIXES
}
}