From: terencehill Date: Thu, 24 Dec 2015 15:11:45 +0000 (+0100) Subject: Fix definition of many server aliases in local games, they all returned "player_name... X-Git-Tag: xonotic-v0.8.2~1366^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=798514277cc53aa0b84f57d92585163e1ffe87c7;p=xonotic%2Fxonotic-data.pk3dir.git Fix definition of many server aliases in local games, they all returned "player_name tried to alias_name". E.g. gametype Commit 75e1f212 introduced this bug --- diff --git a/qcsrc/server/command/all.qh b/qcsrc/server/command/all.qh index 13bca963c..2b240fb2a 100644 --- a/qcsrc/server/command/all.qh +++ b/qcsrc/server/command/all.qh @@ -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"