Fixed am45318 - Some wrong constants from TraceResult enum

This commit is contained in:
Scott Ehlert 2006-10-01 02:39:59 +00:00
parent 9740f6469d
commit 90f11b52bc

View File

@ -71,8 +71,8 @@ stock can_see(ent1, ent2)
return 0; return 0;
} else { } else {
new Float:flFraction; new Float:flFraction;
get_tr2(0, TraceResult:TR_Fraction, flFraction); get_tr2(0, TraceResult:TR_flFraction, flFraction);
if (flFraction == 1.0 || (get_tr2(0, TraceResult:TR_Hit) == ent2)) if (flFraction == 1.0 || (get_tr2(0, TraceResult:TR_pHit) == ent2))
{ {
return 1; return 1;
} }