From: Cloudwalk Date: Tue, 16 Jun 2020 12:26:05 +0000 (-0400) Subject: Rename the 'find' command to 'findent' X-Git-Tag: xonotic-v0.8.5~910^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4de7e7dfae32128bde724e8cb6c7076f05cd3b1c;p=xonotic%2Fxonotic-data.pk3dir.git Rename the 'find' command to 'findent' 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. --- diff --git a/commands.cfg b/commands.cfg index 9218af379..aab4d0941 100644 --- a/commands.cfg +++ b/commands.cfg @@ -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 diff --git a/qcsrc/common/debug.qh b/qcsrc/common/debug.qh index 49b6a5787..b349e22f2 100644 --- a/qcsrc/common/debug.qh +++ b/qcsrc/common/debug.qh @@ -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) {