From: Rudolf Polzer Date: Sun, 20 Nov 2011 20:37:55 +0000 (+0100) Subject: fix an obvious q3map2 bug that causes BSP leafs to be too big sometimes. Maybe improv... X-Git-Tag: xonotic-v0.6.0~54 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=8bff7284c31d7fd501a27ea8b61b0c59b8dd4e77;ds=sidebyside fix an obvious q3map2 bug that causes BSP leafs to be too big sometimes. Maybe improves fps. No other change. --- 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