From 4d2b987c3358f47ce6050d78c9a89d89e4a5a2ac Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 18 Sep 2006 22:53:22 +0000 Subject: [PATCH] Small tweek so aliaslist can be used to show only the alises sent from the server - so you know which commands are available. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2391 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/cmd.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engine/common/cmd.c b/engine/common/cmd.c index fdc7fe449..3456b0fc7 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -877,10 +877,19 @@ void Cmd_AliasList_f (void) { cmdalias_t *cmd; int num=0; + int flags; + + if (!strcmp(Cmd_Argv(1), "server")) + flags = ALIAS_FROMSERVER; + else + flags = 0; + for (cmd=cmd_alias ; cmd ; cmd=cmd->next) { if ((cmd->restriction?cmd->restriction:rcon_level.value) > Cmd_ExecLevel) continue; + if (flags && !(cmd->flags & flags)) + continue; if (!num) Con_TPrintf(TL_ALIASLIST); if (cmd->execlevel)