]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/debug.qh
Merge branch 'martin-t/units' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / debug.qh
index 1723a1c7ad558be5480140aaa04c871ec518edd4..28153a7d404a0eb764de7ca093c79ab43c04cd2f 100644 (file)
@@ -47,6 +47,7 @@ REGISTER_NET_TEMP(net_debug)
        }
 #endif
 
+#if ENABLE_DEBUGDRAW
 #ifdef GAMEQC
 /**
  * 0: off
@@ -182,6 +183,7 @@ bool autocvar_debugdraw;
                }
        }
 #endif
+#endif
 
 GENERIC_COMMAND(bufstr_get, "Examine a string buffer object")
 {
@@ -257,7 +259,7 @@ GENERIC_COMMAND(cvar_localchanges, "Print locally changed cvars")
        }
 }
 
-#ifdef DEBUGTRACE
+#if ENABLE_DEBUGTRACE
 REGISTER_STAT(TRACE_ENT, int)
 #ifdef SVQC
 bool autocvar_debugtrace;
@@ -328,7 +330,7 @@ GENERIC_COMMAND(find, "Search through entities for matching classname")
                                ++entcnt;
                        });
                        if(entcnt)
-                               LOG_INFOF("Found %i entities\n", entcnt);
+                               LOG_INFOF("Found %d entities\n", entcnt);
                        return;
                }