mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Moved BSP visualization into separate dmap -asciiTree option
This commit is contained in:
parent
28730655a1
commit
e4ed5733fc
3 changed files with 7 additions and 1 deletions
|
@ -202,6 +202,7 @@ void ResetDmapGlobals()
|
|||
dmapGlobals.mapLights.Clear();
|
||||
dmapGlobals.verbose = false;
|
||||
dmapGlobals.glview = false;
|
||||
dmapGlobals.asciiTree = false;
|
||||
dmapGlobals.noOptimize = false;
|
||||
dmapGlobals.verboseentities = false;
|
||||
dmapGlobals.noCurves = false;
|
||||
|
@ -271,6 +272,10 @@ void Dmap( const idCmdArgs& args )
|
|||
{
|
||||
dmapGlobals.glview = true;
|
||||
}
|
||||
else if( !idStr::Icmp( s, "asciiTree" ) )
|
||||
{
|
||||
dmapGlobals.asciiTree = true;
|
||||
}
|
||||
else if( !idStr::Icmp( s, "v" ) )
|
||||
{
|
||||
common->Printf( "verbose = true\n" );
|
||||
|
|
|
@ -279,6 +279,7 @@ typedef struct
|
|||
bool verbose;
|
||||
|
||||
bool glview;
|
||||
bool asciiTree; // BSP tree visualization in the .proc file
|
||||
bool noOptimize;
|
||||
bool verboseentities;
|
||||
bool noCurves;
|
||||
|
|
|
@ -847,7 +847,7 @@ static void WriteOutputNodes( node_t* node, idFile* procFile )
|
|||
procFile->WriteFloatString( "/* negative child numbers are areas: (-1-child) */\n" );
|
||||
|
||||
// RB: draw an extra ASCII BSP tree visualization for YouTube tutorial
|
||||
if( dmapGlobals.glview )
|
||||
if( dmapGlobals.asciiTree )
|
||||
{
|
||||
WriteVisualBSPTree( node, procFile );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue