]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/facebsp.c
fix an obvious q3map2 bug that causes BSP leafs to be too big sometimes. Maybe improv...
[xonotic/netradiant.git] / tools / quake3 / q3map2 / facebsp.c
index f9f2f2075570b624b29ab4f7a4dbc520a2ea0490..16997842811a0ca0d591f85ac728174bfe598b44 100644 (file)
@@ -340,6 +340,11 @@ void BuildFaceTree_r( node_t *node, face_t *list )
                        node->children[1]->maxs[i] = plane->dist;
                        break;
                }
+               if ( plane->normal[i] == -1 ) {
+                       node->children[0]->maxs[i] = -plane->dist;
+                       node->children[1]->mins[i] = -plane->dist;
+                       break;
+               }
        }
 
 #if 0