diff --git a/neo/tools/compilers/dmap/dmap.cpp b/neo/tools/compilers/dmap/dmap.cpp index 1faeb6d7..cf88fe08 100644 --- a/neo/tools/compilers/dmap/dmap.cpp +++ b/neo/tools/compilers/dmap/dmap.cpp @@ -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" ); diff --git a/neo/tools/compilers/dmap/dmap.h b/neo/tools/compilers/dmap/dmap.h index d92cbb2f..491c1127 100644 --- a/neo/tools/compilers/dmap/dmap.h +++ b/neo/tools/compilers/dmap/dmap.h @@ -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; diff --git a/neo/tools/compilers/dmap/output.cpp b/neo/tools/compilers/dmap/output.cpp index 0a540b70..3a3a3001 100644 --- a/neo/tools/compilers/dmap/output.cpp +++ b/neo/tools/compilers/dmap/output.cpp @@ -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 ); }