From 523411fb188b851ed46e72acfd9bd981abf432fc Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 22 Apr 2006 23:01:43 +0000 Subject: * Fixed retarded exploitable "kick" command * Removed ability to change the timelimit by vote * Added sprint ability to human tutorial text --- src/cgame/cg_tutorial.c | 4 ++++ src/game/g_cmds.c | 10 ++++---- src/qcommon/qcommon.h | 2 -- src/server/sv_ccmds.c | 63 +++++++++++++++++++++++++------------------------ 4 files changed, 41 insertions(+), 38 deletions(-) (limited to 'src') diff --git a/src/cgame/cg_tutorial.c b/src/cgame/cg_tutorial.c index 035d8304..91df7864 100644 --- a/src/cgame/cg_tutorial.c +++ b/src/cgame/cg_tutorial.c @@ -487,6 +487,10 @@ static void CG_HumanText( char *text, playerState_t *ps ) Q_strcat( text, MAX_TUTORIAL_TEXT, va( "Press %s to use a structure\n", CG_KeyNameForCommand( "+button7" ) ) ); + + Q_strcat( text, MAX_TUTORIAL_TEXT, + va( "Press %s to sprint\n", + CG_KeyNameForCommand( "boost" ) ) ); } /* diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 274f4a4a..875a922a 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -755,13 +755,11 @@ void Cmd_CallVote_f( gentity_t *ent ) else if( !Q_stricmp( arg1, "map" ) ) { } else if( !Q_stricmp( arg1, "kick" ) ) { } else if( !Q_stricmp( arg1, "clientkick" ) ) { } - else if( !Q_stricmp( arg1, "timelimit" ) ) { } else { trap_SendServerCommand( ent-g_entities, "print \"Invalid vote string\n\"" ); trap_SendServerCommand( ent-g_entities, "print \"Vote commands are: map_restart, nextmap, map , " - "kick , clientkick , " - "timelimit