removed useless engine hooks

replaces some div's to mul's
This commit is contained in:
jeefo 2015-06-22 21:32:29 +03:00
commit 65818243ec
8 changed files with 12 additions and 47 deletions

View file

@ -116,7 +116,7 @@ bool IsInViewCone (Vector origin, edict_t *ent)
{
MakeVectors (ent->v.v_angle);
if (((origin - (ent->v.origin + ent->v.view_ofs)).Normalize () | g_pGlobals->v_forward) >= cosf (((ent->v.fov > 0 ? ent->v.fov : 90.0) / 2) * Math::MATH_PI / 180.0))
if (((origin - (ent->v.origin + ent->v.view_ofs)).Normalize () | g_pGlobals->v_forward) >= cosf (((ent->v.fov > 0 ? ent->v.fov : 90.0) * 0.5) * Math::MATH_PI / 180.0))
return true;
return false;