From 9a5b855e2d173abbac8adfa342bb20d57c2a794e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 7 Feb 2006 12:43:40 +0000 Subject: [PATCH] fixed bug at25040 --- dlls/engine/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());