mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
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:
parent
2be6d55f4a
commit
f9f6ea773c
1 changed files with 3 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue