]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix definition of many server aliases in local games, they all returned "player_name... 271/head
authorterencehill <piuntn@gmail.com>
Thu, 24 Dec 2015 15:11:45 +0000 (16:11 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 24 Dec 2015 15:11:45 +0000 (16:11 +0100)
Commit 75e1f212 introduced this bug

qcsrc/server/command/all.qh

index 13bca963cc33a0937987914dee9767ce63273b4a..2b240fb2aba79227fe6c3b8dbe792ee3af6a1691 100644 (file)
@@ -16,7 +16,7 @@ REGISTRY_SORT(SERVER_COMMANDS)
        METHOD(servercommand_##id, m_invokecmd, void(int request, entity caller, int arguments, string command))
 
 STATIC_INIT(SERVER_COMMANDS_aliases) {
-       FOREACH(SERVER_COMMANDS, true, LAMBDA(localcmd(sprintf("alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name, "qc_cmd_svcmd"))));
+       FOREACH(SERVER_COMMANDS, true, LAMBDA(localcmd(sprintf("alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name, "qc_cmd_sv"))));
 }
 
 #include "sv_cmd.qh"