don't seg on hint and skip brushs. hint and clip brushes are now known to

work (what is a skip brush?)
This commit is contained in:
Bill Currie 2003-03-25 16:34:07 +00:00
parent 8db859b77c
commit 81cf1cc99d

View file

@ -567,6 +567,12 @@ LoadBrush (mbrush_t *mb, int hullnum)
mface_t *f; mface_t *f;
// check texture name for attributes // check texture name for attributes
if (mb->faces->texinfo < 0) {
// ignore HINT and SKIP in clip hulls
if (hullnum)
return NULL;
contents = CONTENTS_EMPTY;
} else {
name = miptex[bsp->texinfo[mb->faces->texinfo].miptex]; name = miptex[bsp->texinfo[mb->faces->texinfo].miptex];
if (!strcasecmp (name, "clip") && hullnum == 0) if (!strcasecmp (name, "clip") && hullnum == 0)
@ -588,6 +594,7 @@ LoadBrush (mbrush_t *mb, int hullnum)
return NULL; // water brushes don't show up in clipping hulls return NULL; // water brushes don't show up in clipping hulls
// no seperate textures on clip hull // no seperate textures on clip hull
}
// create the faces // create the faces
brush_faces = NULL; brush_faces = NULL;