]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/debug.qh
Merge branch 'terencehill/entcs_fixes' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / debug.qh
index 49b6a5787a2ddd0e1301448b78b2062523bd10bf..f59038bb10fa5e461ec72bd23bf8b9f693b271b2 100644 (file)
@@ -1,7 +1,9 @@
 #pragma once
 
 #ifdef CSQC
+#include <client/draw.qh>
 #include <client/resources.qh>
+#include <client/view.qh>
 #endif
 
 
@@ -211,7 +213,7 @@ GENERIC_COMMAND(bufstr_get, "Examine a string buffer object", false)
                default:
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " bufstr_get bufhandle string_index");
+                       LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " bufstr_get <bufhandle> <string_index>");
                        return;
                }
        }
@@ -335,7 +337,7 @@ STATIC_INIT(TRACE_ENT)
 #endif
 
 
-GENERIC_COMMAND(find, "Search through entities for matching classname", false)
+GENERIC_COMMAND(findent, "Search through entities for matching classname", false)
 {
        switch (request)
        {
@@ -356,8 +358,8 @@ GENERIC_COMMAND(find, "Search through entities for matching classname", false)
                        LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 " GetProgramCommandPrefix() " find classname");
-                       LOG_HELP("  Where 'classname' is the classname to search for.");
+                       LOG_HELP("Usage:^3 " GetProgramCommandPrefix() " find <classname>");
+                       LOG_HELP("  Where <classname> is the classname to search for.");
                        return;
                }
        }
@@ -379,7 +381,8 @@ GENERIC_COMMAND(findat, "Search through entities for matching origin", false)
                        LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 " GetProgramCommandPrefix() " findat \"x y z\"");
+                       LOG_HELP("Usage:^3 " GetProgramCommandPrefix() " findat <position>");
+                       LOG_HELP("  Where <position> is a vector \"x y z\"");
                        return;
                }
        }