From 368a852cf993ac8d520aaca84706c93408e9cee1 Mon Sep 17 00:00:00 2001 From: uis Date: Thu, 11 Apr 2024 18:22:25 +0300 Subject: [PATCH] Revert excessive check --- tools/quake3/q3map2/light_ydnar.c | 6 ------ 1 file changed, 6 deletions(-) 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 ) { -- 2.39.2