29 #include "../../../idlib/precompiled.h"
44 s = (p->
GetNode(1) == nodeWithGaps);
50 if ( p->
GetNode(!s) != otherNode ) {
63 int s, numMerges = 0, otherNodeFlags;
100 node->
SetFlag( otherNodeFlags );
void MergeLeafNodes(idBrushBSP &bsp)
int GetContents(void) const
bool PortalIsGap(idBrushBSPPortal *portal, int side)
#define AREACONTENTS_SOLID
bool TryMergeLeafNodes(idBrushBSPPortal *portal, int side)
idBrushBSPNode * GetRootNode(void) const
void RemoveFlagRecurse(int flag)
idBrushBSPNode * GetNode(int side) const
void MergeLeafNodes_r(idBrushBSP &bsp, idBrushBSPNode *node)
virtual void Printf(const char *fmt,...) id_attribute((format(printf
bool MergeWithAdjacentLeafNodes(idBrushBSP &bsp, idBrushBSPNode *node)
idBrushBSPNode * GetChild(int index) const
idBrushBSPPortal * GetPortals(void) const
bool AllGapsLeadToOtherNode(idBrushBSPNode *nodeWithGaps, idBrushBSPNode *otherNode)
idBrushBSPPortal * Next(int side) const
void DisplayRealTimeString(char *string,...)
void RemoveFlag(int flag)
void PruneMergedTree_r(idBrushBSPNode *node)