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
This commit is contained in:
Spoike 2006-03-10 03:53:17 +00:00
parent 2be6d55f4a
commit f9f6ea773c
1 changed files with 3 additions and 1 deletions

View File

@ -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 ; j<leaf->numleaffaces ; 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]);