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:
parent
6b25dbd2cc
commit
7fa24021c8
|
|
@ -342,12 +342,12 @@ ChoosePlaneFromList(surface_t *surfaces, vec3_t mins, vec3_t maxs)
|
||||||
/* Don't penalize for splitting skip faces */
|
/* Don't penalize for splitting skip faces */
|
||||||
if (flags & TEX_SKIP)
|
if (flags & TEX_SKIP)
|
||||||
continue;
|
continue;
|
||||||
/* Never split a hint face except with a hint */
|
|
||||||
if (!hintsplit && (flags & TEX_HINT)) {
|
|
||||||
splits = INT_MAX;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (FaceSide(face, plane) == SIDE_ON) {
|
if (FaceSide(face, plane) == SIDE_ON) {
|
||||||
|
/* Never split a hint face except with a hint */
|
||||||
|
if (!hintsplit && (flags & TEX_HINT)) {
|
||||||
|
splits = INT_MAX;
|
||||||
|
break;
|
||||||
|
}
|
||||||
splits++;
|
splits++;
|
||||||
if (splits >= minsplits)
|
if (splits >= minsplits)
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue