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 f9f2f20..1699784 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