Skip to content

Commit 7de9919

Browse files
authored
Fix IsTank function to check client in game status (#966)
IsClientInGame check inverted
1 parent 312c4b9 commit 7de9919

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

addons/sourcemod/scripting/l4d2_fix_tank_rock_handoff.sp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ void CancelPossibleTankThrow(int client)
7474

7575
bool IsTank(int client)
7676
{
77-
if (client <= 0 || client > MaxClients || IsClientInGame(client))
77+
if (client <= 0 || client > MaxClients || !IsClientInGame(client))
7878
return false;
7979

8080
if (GetClientTeam(client) != L4D_TEAM_INFECTED)
8181
return false;
8282

8383
return GetEntProp(client, Prop_Send, "m_zombieClass") == L4D2_ZOMBIE_CLASS_TANK;
84-
}
84+
}

0 commit comments

Comments
 (0)