]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Rename the 'find' command to 'findent'
authorCloudwalk <mazecraze96@gmail.com>
Tue, 16 Jun 2020 12:26:05 +0000 (08:26 -0400)
committerCloudwalk <mazecraze96@gmail.com>
Tue, 16 Jun 2020 12:26:05 +0000 (08:26 -0400)
The find command is reserved as an alias of apropos in FTEQW,
Quakespasm, and Source, and assumedly other engines.

In the particular case of FTEQW, compatibility with the engine is
broken and the command is hijacked by FTEQW, making the Xonotic use
of the command impossible. We should try to maintain compatibility
with at least FTEQW as much as possible, on the principle of not
being restricted to a single engine.

As a side note, this functionality ought to become part of the engine
itself.

commands.cfg
qcsrc/common/debug.qh

index 9218af379ebd818c7dc8f68d3ab3066e957684fb..aab4d0941dd7178e7d43c1ada7c16fa7b03e055b 100644 (file)
@@ -63,7 +63,7 @@ alias dumpnotifs           "qc_cmd_svmenu dumpnotifs           ${* ?}" // Dump a
 alias dumpitems            "qc_cmd_svmenu dumpitems            ${* ?}" // Dump all items to the console
 alias dumpturrets          "qc_cmd_svmenu dumpturrets          ${* ?}" // Dump all turrets into turrets_dump.txt
 alias dumpweapons          "qc_cmd_svmenu dumpweapons          ${* ?}" // Dump all weapons into weapons_dump.txt
-alias find                 "qc_cmd_svmenu find                 ${* ?}" // Search through entities for matching classname
+alias findent              "qc_cmd_svmenu find                 ${* ?}" // Search through entities for matching classname
 alias findat               "qc_cmd_svmenu findat               ${* ?}" // Search through entities for matching origin
 alias maplist              "qc_cmd_svmenu maplist              ${* ?}" // Automatic control of maplist
 alias mx                   "qc_cmd_svmenu mx                   ${* ?}" // Send a matrix command
index 49b6a5787a2ddd0e1301448b78b2062523bd10bf..b349e22f2b7a1419bc62097f1ae6fd89fd587d61 100644 (file)
@@ -335,7 +335,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)
        {