Merge branch 'master' into reorg

This commit is contained in:
rtldg 2021-10-11 06:02:44 +00:00
commit 6325212dfb

View File

@ -878,6 +878,13 @@ void CleanSwitchTeam(int client, int team)
}
else
{
// Remove flashlight :)
if (gEV_Type == Engine_CSS)
{
int EF_DIMLIGHT = 4;
SetEntProp(client, Prop_Send, "m_fEffects", ~EF_DIMLIGHT & GetEntProp(client, Prop_Send, "m_fEffects"));
}
ChangeClientTeam(client, team);
}
}