return qfalse;
}
+ /* prevent division by zero */
+ if ( plane[ lm->axisNum ] == 0 ) {
+ Sys_FPrintf( SYS_WRN, "WARNING: plane[lm->axisNum] == 0\n" );
+ return qfalse;
+ }
+
/* check to see if we need to calculate texture->world tangent vectors */
if ( info->si->normalImage != NULL && CalcTangentVectors( 3, dv, stvStatic, ttvStatic ) ) {
stv = stvStatic;
return qfalse;
}
+ /* prevent division by zero */
+ if ( plane[ lm->axisNum ] == 0 ) {
+ Sys_FPrintf( SYS_WRN, "WARNING: plane[lm->axisNum] == 0\n" );
+ return qfalse;
+ }
+
/* 4th point must fall on the plane */
dist = DotProduct( plane, dv[ 3 ]->xyz ) - plane[ 3 ];
if ( fabs( dist ) > QUAD_PLANAR_EPSILON ) {
/* clear light envelope */
light->envelope = 0;
+ /* FIXME: radius may be undefined */
/* handle area lights */
if ( exactPointToPolygon && light->type == EMIT_AREA && light->w != NULL ) {
light->envelope = MAX_WORLD_COORD * 8.0f;