qbsp: replace error enums in csg4.c

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-04-22 18:20:02 +09:30
parent 58b33cc3d4
commit 02e81df39b
3 changed files with 3 additions and 7 deletions

View File

@ -101,7 +101,7 @@ SplitFace(face_t *in, const plane_t *split, face_t **front, face_t **back)
vec3_t mid;
if (in->w.numpoints < 0)
Error(errFreedFace);
Error_("Attempting to split freed face");
/* Fast test */
dot = DotProduct(in->origin, split->normal) - split->dist;
@ -176,9 +176,9 @@ SplitFace(face_t *in, const plane_t *split, face_t **front, face_t **back)
}
if (newf->w.numpoints > MAXEDGES || new2->w.numpoints > MAXEDGES)
Error(errLowSplitPointCount);
Error_("Internal error: numpoints > MAXEDGES (%s)", __func__);
// free the original face now that it is represented by the fragments
/* free the original face now that it is represented by the fragments */
FreeMem(in, FACE, 1);
}

View File

@ -92,9 +92,7 @@ const char *rgszErrors[cErrors] = {
"Found a non-canonical vector",
"Normalization error in FindPlane (vector length %.4f)",
"Attempting to split freed face",
"Internal error: numpoints > MAXEDGES in SplitFace",
"Failure reading from file",
"Colinear edge",
"Portal already included in AddPortalToNodes",

View File

@ -62,8 +62,6 @@ enum {
errDegenerateEdge,
errNonCanonicalVector,
errNormalization,
errFreedFace,
errLowSplitPointCount, // 30
errReadFailure,
errColinearEdge,
errPortalAlreadyAdded,