diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-02-28 12:09:10 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-02-28 12:09:10 +0000 |
commit | bf6d45c620f098c84d602e9347bc7cf457c38b5a (patch) | |
tree | ec075676ff09467ea910c51fb45fb37185a1ddf3 /source/cl_demo.c | |
parent | 4034314816f7ec9e26c9b9bfc2630c8ca0a24874 (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/cl_demo.c')
-rw-r--r-- | source/cl_demo.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/cl_demo.c b/source/cl_demo.c index dfaf463..a505058 100644 --- a/source/cl_demo.c +++ b/source/cl_demo.c @@ -646,9 +646,12 @@ static void CL_PlayDemo_f( void ) { } } -static const char *CL_PlayDemo_g( const char *partial, int state ) { - return Com_FileNameGeneratorByFilter( "demos", "*.dm2;*.dm2.gz", - partial, qfalse, state ); +static const char *CL_PlayDemo_g( const char *partial, int argnum, int state ) { + if( argnum == 1 ) { + return Com_FileNameGeneratorByFilter( "demos", "*.dm2;*.dm2.gz", + partial, qfalse, state ); + } + return NULL; } static void CL_ParseInfoString( demoInfo_t *info, int clientNum, int index, const char *string ) { |