Updated TF2_IsPlayerInCondition stock for m_nPlayerCondEx2...

This commit is contained in:
Nicholas Hastings 2012-12-19 07:55:03 -05:00
parent bf9c58b8ed
commit db699ed2c3

View File

@ -472,7 +472,7 @@ stock bool:TF2_IsPlayerInCondition(client, TFCond:cond)
return true;
}
}
else
else if (_:cond < 64)
{
new bit = (1 << (_:cond - 32));
if ((GetEntProp(client, Prop_Send, "m_nPlayerCondEx") & bit) == bit)
@ -480,6 +480,14 @@ stock bool:TF2_IsPlayerInCondition(client, TFCond:cond)
return true;
}
}
else
{
new bit = (1 << (_:cond - 64));
if ((GetEntProp(client, Prop_Send, "m_nPlayerCondEx2") & bit) == bit)
{
return true;
}
}
return false;
}