From bf6d45c620f098c84d602e9347bc7cf457c38b5a Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Thu, 28 Feb 2008 12:09:10 +0000 Subject: Do not spam dedicated server console with heartbeats. Added autocompletion of options for some commands. Made logfile_prefix not empty by default. Re-enabled `anti-kick' exploit fix. --- source/snd_main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source/snd_main.c') diff --git a/source/snd_main.c b/source/snd_main.c index 96a7a1c..616957e 100644 --- a/source/snd_main.c +++ b/source/snd_main.c @@ -138,9 +138,12 @@ static void S_SoundInfo_f( void ) { } -const char *S_Play_g( const char *partial, int state ) { - return Com_FileNameGeneratorByFilter( "sound", "*.wav", partial, +const char *S_Play_g( const char *partial, int argnum, int state ) { + if( argnum == 1 ) { + return Com_FileNameGeneratorByFilter( "sound", "*.wav", partial, qfalse, state ); + } + return NULL; } static void S_Play_f( void ) { -- cgit v1.2.3