summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 8461981f..b8e90239 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -3246,6 +3246,10 @@ void G_ListCommands( gentity_t *ent )
for( i = 0; i < numCmds; i++ )
{
+ // never advertise cheats
+ if( cmds[ i ].cmdFlags & CMD_CHEAT )
+ continue;
+
len = strlen( cmds[ i ].cmdName ) + 1;
if( len + outlen >= sizeof( out ) - 1 )
{