Skip to content

Commit 4176942

Browse files
authored
Remove an unnecessary check from IsValidClient
IsClientConnected is redundant as IsClientInGame already takes care of it.
1 parent bc94791 commit 4176942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripting/retakes_autoplant.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,5 +240,5 @@ public bool TraceFilterIgnorePlayers(int entity, int contentsMask, int client)
240240

241241
stock bool IsValidClient(int client)
242242
{
243-
return client > 0 && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client);
243+
return client > 0 && client <= MaxClients && IsClientInGame(client);
244244
}

0 commit comments

Comments
 (0)