fixed bug at25040

This commit is contained in:
David Anderson 2006-02-07 12:43:40 +00:00
parent a43f62615b
commit 9a5b855e2d

View File

@ -875,7 +875,7 @@ static cell AMX_NATIVE_CALL in_view_cone(AMX *amx, cell *params)
MAKE_VECTORS(pEdictSrc->v.angles);
vec2LOS = (pEdictSrc->v.origin - origin).Make2D();
vec2LOS = (origin - pEdictSrc->v.origin).Make2D();
vec2LOS = vec2LOS.Normalize();
flDot = DotProduct(vec2LOS, gpGlobals->v_forward.Make2D());