- Added support for loading ZGL3/XGL3 nodes.
- Added additional debug spew for the nodebuilder. - Restore the nodebuilder's debug spew that was present in ZDBSP but not the internal version. Use the CRT's printf for this output to ensure that it is identical to ZDBSP's output for the same input. SVN r3980 (trunk)
This commit is contained in:
parent
b1543fdc08
commit
d77297e969
8 changed files with 92 additions and 23 deletions
|
|
@ -83,6 +83,8 @@ double FNodeBuilder::AddIntersection (const node_t &node, int vertex)
|
|||
// seg information will be messed up in the generated tree.
|
||||
void FNodeBuilder::FixSplitSharers (const node_t &node)
|
||||
{
|
||||
D(Printf(PRINT_LOG, "events:\n"));
|
||||
D(Events.PrintTree());
|
||||
for (unsigned int i = 0; i < SplitSharers.Size(); ++i)
|
||||
{
|
||||
DWORD seg = SplitSharers[i].Seg;
|
||||
|
|
@ -95,6 +97,18 @@ void FNodeBuilder::FixSplitSharers (const node_t &node)
|
|||
continue;
|
||||
}
|
||||
|
||||
// Use the CRT's printf so the formatting matches ZDBSP's
|
||||
D(char buff[200]);
|
||||
D(sprintf(buff, "Considering events on seg %d(%d[%d,%d]->%d[%d,%d]) [%g:%g]\n", seg,
|
||||
Segs[seg].v1,
|
||||
Vertices[Segs[seg].v1].x>>16,
|
||||
Vertices[Segs[seg].v1].y>>16,
|
||||
Segs[seg].v2,
|
||||
Vertices[Segs[seg].v2].x>>16,
|
||||
Vertices[Segs[seg].v2].y>>16,
|
||||
SplitSharers[i].Distance, event->Distance));
|
||||
D(Printf(PRINT_LOG, "%s", buff));
|
||||
|
||||
if (SplitSharers[i].Forward)
|
||||
{
|
||||
event = Events.GetSuccessor (event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue