From: cloudwalk Date: Tue, 6 Oct 2020 14:59:38 +0000 (+0000) Subject: cmd: Apply flags to QC commands too. Fixes +showscores in Xonotic. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d857362e3ba3e91546801bd166461966f3aa424f;p=xonotic%2Fdarkplaces.git cmd: Apply flags to QC commands too. Fixes +showscores in Xonotic. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13004 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cmd.c b/cmd.c index eca5bf3d..4a899122 100644 --- 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;