From 8efae544507a4ebdf8461acdb852bbcd2fc2ce41 Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Sun, 27 Aug 2023 17:13:12 +0200 Subject: [PATCH] Removed zero vectors assert in ProjectPointOnPlane(), it was removed since F.A.K.K 2 --- code/qcommon/q_math.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/code/qcommon/q_math.c b/code/qcommon/q_math.c index 582f7b4c..0a2fc409 100644 --- a/code/qcommon/q_math.c +++ b/code/qcommon/q_math.c @@ -819,11 +819,7 @@ void ProjectPointOnPlane( vec3_t dst, const vec3_t p, const vec3_t normal ) vec3_t n; float inv_denom; - inv_denom = DotProduct( normal, normal ); -#ifndef Q3_VM - assert( Q_fabs(inv_denom) != 0.0f ); // zero vectors get here -#endif - inv_denom = 1.0f / inv_denom; + inv_denom = 1.0f / DotProduct( normal, normal ); d = DotProduct( normal, p ) * inv_denom;