mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
fixed bug at25040
This commit is contained in:
parent
a43f62615b
commit
9a5b855e2d
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user