mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
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:
parent
8db859b77c
commit
81cf1cc99d
1 changed files with 23 additions and 16 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue