Updated TF2_IsPlayerInCondition stock for m_nPlayerCondEx2...
Updated TF2_IsPlayerInCondition stock for m_nPlayerCondEx2...
1.1 --- a/plugins/include/tf2_stocks.inc Wed Dec 19 07:55:03 2012 -0500
1.2 +++ b/plugins/include/tf2_stocks.inc Wed Dec 19 07:55:03 2012 -0500
1.3 @@ -472,7 +472,7 @@
1.4 return true;
1.5 }
1.6 }
1.7 - else
1.8 + else if (_:cond < 64)
1.9 {
1.10 new bit = (1 << (_:cond - 32));
1.11 if ((GetEntProp(client, Prop_Send, "m_nPlayerCondEx") & bit) == bit)
1.12 @@ -480,6 +480,14 @@
1.13 return true;
1.14 }
1.15 }
1.16 + else
1.17 + {
1.18 + new bit = (1 << (_:cond - 64));
1.19 + if ((GetEntProp(client, Prop_Send, "m_nPlayerCondEx2") & bit) == bit)
1.20 + {
1.21 + return true;
1.22 + }
1.23 + }
1.24
1.25 return false;
1.26 }