From 8bff7284c31d7fd501a27ea8b61b0c59b8dd4e77 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 20 Nov 2011 21:37:55 +0100 Subject: [PATCH] fix an obvious q3map2 bug that causes BSP leafs to be too big sometimes. Maybe improves fps. No other change. --- tools/quake3/q3map2/facebsp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/quake3/q3map2/facebsp.c b/tools/quake3/q3map2/facebsp.c index f9f2f207..16997842 100644 --- a/tools/quake3/q3map2/facebsp.c +++ b/tools/quake3/q3map2/facebsp.c @@ -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 -- 2.39.2