From 76c737c77340e255c7869ea26032bd074a8a7f64 Mon Sep 17 00:00:00 2001 From: asmodai Date: Sun, 11 Oct 2015 21:01:02 +0300 Subject: [PATCH] Fixed connection check --- rehlds/engine/sv_user.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rehlds/engine/sv_user.cpp b/rehlds/engine/sv_user.cpp index 51ee09f..ecca7c8 100644 --- a/rehlds/engine/sv_user.cpp +++ b/rehlds/engine/sv_user.cpp @@ -1408,7 +1408,7 @@ void SV_ParseStringCommand(client_t *pSenderClient) #ifdef REHLDS_FIXES g_StringCommandsRateLimiter.StringCommandIssued(pSenderClient - g_psvs.clients); - if (!pSenderClient->active) { + if (!pSenderClient->connected) { return; //return if player was kicked } #endif @@ -1582,7 +1582,7 @@ void SV_ParseMove(client_t *pSenderClient) } g_MoveCommandRateLimiter.MoveCommandsIssued(host_client - g_psvs.clients, numCmdsToIssue); - if (!host_client->active) { + if (!host_client->connected) { return; //return if player was kicked } #endif