I left some debug code in there, whoops

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4081 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2012-07-20 01:48:08 +00:00
parent e7752c49bd
commit 550cd8e453
1 changed files with 0 additions and 21 deletions

View File

@ -3582,7 +3582,6 @@ void CMQ3_CalcPHS (void)
for (i=0 ; i<numclusters ; i++, dest += rowwords, scan += rowbytes) for (i=0 ; i<numclusters ; i++, dest += rowwords, scan += rowbytes)
{ {
memcpy (dest, scan, rowbytes); memcpy (dest, scan, rowbytes);
Hunk_Check();
for (j=0 ; j<rowbytes ; j++) for (j=0 ; j<rowbytes ; j++)
{ {
bitbyte = scan[j]; bitbyte = scan[j];
@ -3599,7 +3598,6 @@ void CMQ3_CalcPHS (void)
src = (unsigned int *)(map_q3pvs->data) + index*rowwords; src = (unsigned int *)(map_q3pvs->data) + index*rowwords;
for (l=0 ; l<rowwords ; l++) for (l=0 ; l<rowwords ; l++)
dest[l] |= src[l]; dest[l] |= src[l];
Hunk_Check();
} }
} }
for (j=0 ; j<numclusters ; j++) for (j=0 ; j<numclusters ; j++)
@ -3870,33 +3868,24 @@ cmodel_t *CM_LoadMap (char *name, char *filein, qboolean clientload, unsigned *c
#endif #endif
case QR_NONE: //dedicated only case QR_NONE: //dedicated only
mapisq3 = true; mapisq3 = true;
Hunk_Check();
noerrors = noerrors && CModQ3_LoadShaders (&header.lumps[Q3LUMP_SHADERS]); noerrors = noerrors && CModQ3_LoadShaders (&header.lumps[Q3LUMP_SHADERS]);
Hunk_Check();
noerrors = noerrors && CModQ3_LoadPlanes (&header.lumps[Q3LUMP_PLANES]); noerrors = noerrors && CModQ3_LoadPlanes (&header.lumps[Q3LUMP_PLANES]);
Hunk_Check();
noerrors = noerrors && CModQ3_LoadLeafBrushes (&header.lumps[Q3LUMP_LEAFBRUSHES]); noerrors = noerrors && CModQ3_LoadLeafBrushes (&header.lumps[Q3LUMP_LEAFBRUSHES]);
Hunk_Check();
noerrors = noerrors && CModQ3_LoadBrushes (&header.lumps[Q3LUMP_BRUSHES]); noerrors = noerrors && CModQ3_LoadBrushes (&header.lumps[Q3LUMP_BRUSHES]);
Hunk_Check();
if (header.version == 1) if (header.version == 1)
{ {
noerrors = noerrors && CModRBSP_LoadBrushSides (&header.lumps[Q3LUMP_BRUSHSIDES]); noerrors = noerrors && CModRBSP_LoadBrushSides (&header.lumps[Q3LUMP_BRUSHSIDES]);
Hunk_Check();
noerrors = noerrors && CModRBSP_LoadVertexes (&header.lumps[Q3LUMP_DRAWVERTS]); noerrors = noerrors && CModRBSP_LoadVertexes (&header.lumps[Q3LUMP_DRAWVERTS]);
} }
else else
{ {
noerrors = noerrors && CModQ3_LoadBrushSides (&header.lumps[Q3LUMP_BRUSHSIDES]); noerrors = noerrors && CModQ3_LoadBrushSides (&header.lumps[Q3LUMP_BRUSHSIDES]);
Hunk_Check();
noerrors = noerrors && CModQ3_LoadVertexes (&header.lumps[Q3LUMP_DRAWVERTS]); noerrors = noerrors && CModQ3_LoadVertexes (&header.lumps[Q3LUMP_DRAWVERTS]);
} }
Hunk_Check();
if (header.version == 1) if (header.version == 1)
noerrors = noerrors && CModRBSP_LoadFaces (&header.lumps[Q3LUMP_SURFACES]); noerrors = noerrors && CModRBSP_LoadFaces (&header.lumps[Q3LUMP_SURFACES]);
else else
noerrors = noerrors && CModQ3_LoadFaces (&header.lumps[Q3LUMP_SURFACES]); noerrors = noerrors && CModQ3_LoadFaces (&header.lumps[Q3LUMP_SURFACES]);
Hunk_Check();
#if defined(GLQUAKE) || defined(D3DQUAKE) #if defined(GLQUAKE) || defined(D3DQUAKE)
if (qrenderer != QR_NONE) if (qrenderer != QR_NONE)
{ {
@ -3934,20 +3923,13 @@ Hunk_Check();
} }
} }
#endif #endif
Hunk_Check();
noerrors = noerrors && CModQ3_LoadLeafFaces (&header.lumps[Q3LUMP_LEAFSURFACES]); noerrors = noerrors && CModQ3_LoadLeafFaces (&header.lumps[Q3LUMP_LEAFSURFACES]);
Hunk_Check();
noerrors = noerrors && CModQ3_LoadLeafs (&header.lumps[Q3LUMP_LEAFS]); noerrors = noerrors && CModQ3_LoadLeafs (&header.lumps[Q3LUMP_LEAFS]);
Hunk_Check();
noerrors = noerrors && CModQ3_LoadNodes (&header.lumps[Q3LUMP_NODES]); noerrors = noerrors && CModQ3_LoadNodes (&header.lumps[Q3LUMP_NODES]);
Hunk_Check();
noerrors = noerrors && CModQ3_LoadSubmodels (&header.lumps[Q3LUMP_MODELS]); noerrors = noerrors && CModQ3_LoadSubmodels (&header.lumps[Q3LUMP_MODELS]);
Hunk_Check();
noerrors = noerrors && CModQ3_LoadVisibility (&header.lumps[Q3LUMP_VISIBILITY]); noerrors = noerrors && CModQ3_LoadVisibility (&header.lumps[Q3LUMP_VISIBILITY]);
Hunk_Check();
if (noerrors) if (noerrors)
CMod_LoadEntityString (&header.lumps[Q3LUMP_ENTITIES]); CMod_LoadEntityString (&header.lumps[Q3LUMP_ENTITIES]);
Hunk_Check();
if (!noerrors) if (!noerrors)
{ {
@ -4008,15 +3990,12 @@ Hunk_Check();
Hunk_FreeToLowMark(start); Hunk_FreeToLowMark(start);
return NULL; return NULL;
} }
Hunk_Check();
#ifndef CLIENTONLY #ifndef CLIENTONLY
CMQ3_CalcPHS(); CMQ3_CalcPHS();
#endif #endif
Hunk_Check();
// BZ_Free(map_verts); // BZ_Free(map_verts);
BZ_Free(map_faces); BZ_Free(map_faces);
BZ_Free(map_leaffaces); BZ_Free(map_leaffaces);
Hunk_Check();
break; break;
default: default:
#ifdef SERVERONLY #ifdef SERVERONLY