mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-23 08:00:18 +02:00
Removed zero vectors assert in ProjectPointOnPlane(), it was removed since F.A.K.K 2
This commit is contained in:
1 file changed
+1
-5
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user