brush.cc: attempt to fix test failures

This commit is contained in:
Eric Wasylishen 2021-09-25 21:13:42 -06:00
parent ea620b3e5d
commit b36c428bef
1 changed files with 6 additions and 0 deletions

View File

@ -1388,6 +1388,12 @@ Brush_LoadEntity(mapentity_t *dst, const mapentity_t *src, const int hullnum)
}
continue;
}
// for hull1, 2, etc., convert clip to CONTENTS_SOLID
if (hullnum > 0) {
contents = contents.merge(options.target_game->create_solid_contents());
contents.extended &= ~CFLAGS_CLIP;
}
// if hullnum is -1 (bspx brush export), leave it as CONTENTS_CLIP
}
/* "hint" brushes don't affect the collision hulls */