- Remove SelectVertexClose() uniqueness failure compensation code, since it can produce nodes

that violate the GL node spec and thus cannot be saved. ClassifyLine() looks like the right
  place to handle this, but I'd prefer not to touch it unless somebody produces a map that shows it's
  absolutely necessary, since this single function is responsible for the vast majority of the time
  spent by the nodebuilder.



SVN r2093 (trunk)
This commit is contained in:
Randy Heit 2010-01-03 01:02:11 +00:00
parent fdaa6547f6
commit 6f4e5f01ce

View file

@ -806,23 +806,6 @@ void FNodeBuilder::SplitSegs (DWORD set, node_t &node, DWORD splitseg, DWORD &ou
if (vertnum == seg->v1 || vertnum == seg->v2) if (vertnum == seg->v1 || vertnum == seg->v2)
{ {
Printf("SelectVertexClose selected endpoint of seg %u\n", set); Printf("SelectVertexClose selected endpoint of seg %u\n", set);
// Check if the resulting split vertex matches one of the line's ends.
// In this case this seg must not be split
if ((vertnum == seg->v1 && sidev2 == -1) || (vertnum == seg->v2 && sidev1 == -1))
{
side = 0;
sidev1 = 0;
seg->next = outset0;
outset0 = set;
}
else
{
side = 1;
sidev2 = 0;
seg->next = outset1;
outset1 = set;
}
break;
} }
seg2 = SplitSeg (set, vertnum, sidev1); seg2 = SplitSeg (set, vertnum, sidev1);