Removed zero vectors assert in ProjectPointOnPlane(), it was removed since F.A.K.K 2

This commit is contained in:
smallmodel committed 2023-08-27 17:13:12 +02:00
1 parent 2785a72789
commit 8efae54450
1 file changed
+1 -5
+1 -5
View File
@@ -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;