]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix an obvious q3map2 bug that causes BSP leafs to be too big sometimes. Maybe improv...
authorRudolf Polzer <divverent@xonotic.org>
Sun, 20 Nov 2011 20:37:55 +0000 (21:37 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 20 Nov 2011 20:37:55 +0000 (21:37 +0100)
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