Added a special comment inside in_view_cone

This commit is contained in:
Scott Ehlert 2007-03-11 04:55:38 +00:00
parent 7124f8bd2c
commit 309bc2dcaa

View File

@ -830,6 +830,7 @@ static cell AMX_NATIVE_CALL in_view_cone(AMX *amx, cell *params)
flDot = DotProduct(vecLOS, vecForward);
// Dividing fov by two and then converting it to radians - don't ask about this ever again, please :\
if (flDot >= cos(pEdictSrc->v.fov * (M_PI / 360)))
return 1;
else