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
This commit is contained in:
Spoike 2006-09-18 22:53:22 +00:00
parent 94d6b75f79
commit 4d2b987c33

View file

@ -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)