mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
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;
|
cmdalias_t *cmd;
|
||||||
int num=0;
|
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)
|
for (cmd=cmd_alias ; cmd ; cmd=cmd->next)
|
||||||
{
|
{
|
||||||
if ((cmd->restriction?cmd->restriction:rcon_level.value) > Cmd_ExecLevel)
|
if ((cmd->restriction?cmd->restriction:rcon_level.value) > Cmd_ExecLevel)
|
||||||
continue;
|
continue;
|
||||||
|
if (flags && !(cmd->flags & flags))
|
||||||
|
continue;
|
||||||
if (!num)
|
if (!num)
|
||||||
Con_TPrintf(TL_ALIASLIST);
|
Con_TPrintf(TL_ALIASLIST);
|
||||||
if (cmd->execlevel)
|
if (cmd->execlevel)
|
||||||
|
|
Loading…
Reference in a new issue