diff --git a/dlls/engine/engine.cpp b/dlls/engine/engine.cpp index a492facf..6832d5f4 100755 --- a/dlls/engine/engine.cpp +++ b/dlls/engine/engine.cpp @@ -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());