]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cmd: Apply flags to QC commands too. Fixes +showscores in Xonotic.
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Oct 2020 14:59:38 +0000 (14:59 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Oct 2020 14:59:38 +0000 (14:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13004 d7cf8633-e32d-0410-b094-e92efae38249

cmd.c

diff --git a/cmd.c b/cmd.c
index eca5bf3d2bbf788e3ec7cd85eea0751f56c6d6ea..4a8991225c6ad9376e25881652455c86ddd9000b 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -1887,6 +1887,7 @@ void Cmd_AddCommand(int flags, const char *cmd_name, xcommand_t function, const
 
 
                                func = (cmd_function_t *)Mem_Alloc(cmd->mempool, sizeof(cmd_function_t));
+                               func->flags = flags;
                                func->name = cmd_name;
                                func->function = function;
                                func->description = description;