qbsp: move the hint split check to the correct place

Check that the hint face would actually get split before we discount the
candidate split plane...

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-03-06 22:44:12 +10:30
parent 6b25dbd2cc
commit 7fa24021c8
1 changed files with 5 additions and 5 deletions

View File

@ -342,12 +342,12 @@ ChoosePlaneFromList(surface_t *surfaces, vec3_t mins, vec3_t maxs)
/* Don't penalize for splitting skip faces */
if (flags & TEX_SKIP)
continue;
if (FaceSide(face, plane) == SIDE_ON) {
/* Never split a hint face except with a hint */
if (!hintsplit && (flags & TEX_HINT)) {
splits = INT_MAX;
break;
}
if (FaceSide(face, plane) == SIDE_ON) {
splits++;
if (splits >= minsplits)
break;