qbsp: call MergeAll in the right place

This commit is contained in:
Eric Wasylishen 2022-04-15 02:01:06 -06:00
parent 8a71b372bd
commit f38746a7eb
1 changed files with 3 additions and 3 deletions

View File

@ -702,9 +702,6 @@ static void ProcessEntity(mapentity_t *entity, const int hullnum)
// make a really good tree
nodes = SolidBSP(entity, false);
// merge polygons
MergeAll(nodes);
// make the real portals for vis tracing
PortalizeWorld(entity, nodes, hullnum);
}
@ -718,6 +715,9 @@ static void ProcessEntity(mapentity_t *entity, const int hullnum)
MakeVisibleFaces(entity, nodes);
// merge polygons
MergeAll(nodes);
// needs to come after any face creation
MakeMarkFaces(entity, nodes);