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:
parent
94d6b75f79
commit
4d2b987c33
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue