From 342d30ae07f63ac3e8bc84c2a75c59631b459262 Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Tue, 24 Oct 2006 21:47:02 +0000 Subject: * !unlock command was not printing usage information (thanks kevlarman) --- src/game/g_admin.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') 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 ) { -- cgit