summaryrefslogtreecommitdiff
path: root/source/snd_main.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-02-28 12:09:10 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-02-28 12:09:10 +0000
commitbf6d45c620f098c84d602e9347bc7cf457c38b5a (patch)
treeec075676ff09467ea910c51fb45fb37185a1ddf3 /source/snd_main.c
parent4034314816f7ec9e26c9b9bfc2630c8ca0a24874 (diff)
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.
Diffstat (limited to 'source/snd_main.c')
-rw-r--r--source/snd_main.c7
1 files changed, 5 insertions, 2 deletions
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 ) {