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;