From f9f6ea773c3deda676bd6af4df4da2e665701bed Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 10 Mar 2006 03:53:17 +0000 Subject: [PATCH] Stop Q3 from crashing on it's own maps. (fixme: do q2 and q1 too) git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2074 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/gl_q2bsp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/common/gl_q2bsp.c b/engine/common/gl_q2bsp.c index baeb9a08d..3e620eca2 100644 --- a/engine/common/gl_q2bsp.c +++ b/engine/common/gl_q2bsp.c @@ -839,7 +839,7 @@ void CM_CreatePatchesForLeafs (void) leaf->numleafpatches = 0; leaf->firstleafpatch = numleafpatches; - if (leaf->cluster == -1) + if (leaf->cluster == -1 || map_noCurves.value) continue; for (j=0 ; jnumleaffaces ; j++) @@ -3981,6 +3981,8 @@ void CM_InitBoxHull (void) box_model.funcs.LeafPVS = CM_LeafnumPVS; box_model.funcs.LeafnumForPoint = CM_PointLeafnum; box_model.funcs.Trace = CM_Trace; + box_model.funcs.NativeContents = CM_NativeContents; + box_model.funcs.NativeTrace = CM_NativeTrace; box_model.hulls[0].available = true; Q2BSP_SetHullFuncs(&box_model.hulls[0]);