From: uis Date: Thu, 11 Apr 2024 15:22:25 +0000 (+0300) Subject: Revert excessive check X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuis%2Flightfix;p=xonotic%2Fnetradiant.git Revert excessive check --- diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index 380ed243..fef0536d 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -1006,12 +1006,6 @@ static qboolean MapQuad( rawLightmap_t *lm, surfaceInfo_t *info, bspDrawVert_t * 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 ) {