2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-06 03:55:32 +03:00

Fixed connection check

This commit is contained in:
asmodai 2015-10-11 21:01:02 +03:00
parent 317a9dc3ba
commit 76c737c773

View File

@ -1408,7 +1408,7 @@ void SV_ParseStringCommand(client_t *pSenderClient)
#ifdef REHLDS_FIXES #ifdef REHLDS_FIXES
g_StringCommandsRateLimiter.StringCommandIssued(pSenderClient - g_psvs.clients); g_StringCommandsRateLimiter.StringCommandIssued(pSenderClient - g_psvs.clients);
if (!pSenderClient->active) { if (!pSenderClient->connected) {
return; //return if player was kicked return; //return if player was kicked
} }
#endif #endif
@ -1582,7 +1582,7 @@ void SV_ParseMove(client_t *pSenderClient)
} }
g_MoveCommandRateLimiter.MoveCommandsIssued(host_client - g_psvs.clients, numCmdsToIssue); g_MoveCommandRateLimiter.MoveCommandsIssued(host_client - g_psvs.clients, numCmdsToIssue);
if (!host_client->active) { if (!host_client->connected) {
return; //return if player was kicked return; //return if player was kicked
} }
#endif #endif