diff options
author | Tony J. White <tjw@tjw.org> | 2006-10-24 21:47:02 +0000 |
---|---|---|
committer | Tony J. White <tjw@tjw.org> | 2006-10-24 21:47:02 +0000 |
commit | 342d30ae07f63ac3e8bc84c2a75c59631b459262 (patch) | |
tree | de69d05ad3807e5440e13ec6da3f72543f092da0 /src | |
parent | adf7edcb953bfce24e3a91a3f3780497801a264b (diff) |
* !unlock command was not printing usage information (thanks kevlarman)
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_admin.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 38b864bd..87142976 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -2663,7 +2663,7 @@ qboolean G_admin_unlock( gentity_t *ent, int skiparg ) char teamName[2] = {""}; pTeam_t team; - if( G_SayArgc() < 1 + skiparg ) + if( G_SayArgc() < 2 + skiparg ) { ADMP( "^3!unlock: ^7usage: !unlock [a|h]\n" ); return qfalse; @@ -2706,9 +2706,13 @@ qboolean G_admin_unlock( gentity_t *ent, int skiparg ) } /* - * This function facilitates the TP define. ADMP() is similar to CP except that - * it prints the message to the server console if ent is not defined. - */ +================ + G_admin_print + + This function facilitates the ADMP define. ADMP() is similar to CP except + that it prints the message to the server console if ent is not defined. +================ +*/ void G_admin_print( gentity_t *ent, char *m ) { |