From 41769424c831146b960a740b73edfc7ae97997cd Mon Sep 17 00:00:00 2001 From: Suza <73082112+Zabaniya001@users.noreply.github.com> Date: Sat, 11 Dec 2021 15:41:18 +0100 Subject: [PATCH] Remove an unnecessary check from IsValidClient IsClientConnected is redundant as IsClientInGame already takes care of it. --- scripting/retakes_autoplant.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/retakes_autoplant.sp b/scripting/retakes_autoplant.sp index 8694c52..0950044 100644 --- a/scripting/retakes_autoplant.sp +++ b/scripting/retakes_autoplant.sp @@ -240,5 +240,5 @@ public bool TraceFilterIgnorePlayers(int entity, int contentsMask, int client) stock bool IsValidClient(int client) { - return client > 0 && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client); + return client > 0 && client <= MaxClients && IsClientInGame(client); }