From 65b823bf367034c204d370a6a73965a196072153 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 11 Dec 2005 16:41:27 +0000 Subject: * Added trap_FS_GetFileList to cgame, so it's not longer necessary to hack around it not being there * Removed Q3 console notify code and improved cgame rendered notify area * Sorted out pain blend texture coordinates --- src/qcommon/cmd.c | 13 +++++++++++++ src/qcommon/q_shared.h | 1 - src/qcommon/qcommon.h | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src/qcommon') diff --git a/src/qcommon/cmd.c b/src/qcommon/cmd.c index eb52e3f6..2968f708 100644 --- a/src/qcommon/cmd.c +++ b/src/qcommon/cmd.c @@ -414,6 +414,18 @@ void Cmd_ArgsBuffer( char *buffer, int bufferLength ) { Q_strncpyz( buffer, Cmd_Args(), bufferLength ); } +/* +============ +Cmd_LiteralArgsBuffer + +The interpreted versions use this because +they can't have pointers returned to them +============ +*/ +void Cmd_LiteralArgsBuffer( char *buffer, int bufferLength ) { + Q_strncpyz( buffer, cmd_cmd, bufferLength ); +} + /* ============ Cmd_Cmd @@ -451,6 +463,7 @@ void Cmd_TokenizeString( const char *text_in ) { // clear previous args cmd_argc = 0; + cmd_cmd[ 0 ] = '\0'; if ( !text_in ) { return; diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h index 1c392f2c..737b9f0e 100644 --- a/src/qcommon/q_shared.h +++ b/src/qcommon/q_shared.h @@ -918,7 +918,6 @@ typedef enum { #define MAX_SOUNDS 256 // so they cannot be blindly increased #define MAX_GAME_SHADERS 64 #define MAX_GAME_PARTICLE_SYSTEMS 64 -#define MAX_PARTICLE_FILES 128 //FIXME #define MAX_CONFIGSTRINGS 1024 diff --git a/src/qcommon/qcommon.h b/src/qcommon/qcommon.h index c0c3925e..11c332ce 100644 --- a/src/qcommon/qcommon.h +++ b/src/qcommon/qcommon.h @@ -410,6 +410,7 @@ void Cmd_ArgvBuffer( int arg, char *buffer, int bufferLength ); char *Cmd_Args (void); char *Cmd_ArgsFrom( int arg ); void Cmd_ArgsBuffer( char *buffer, int bufferLength ); +void Cmd_LiteralArgsBuffer( char *buffer, int bufferLength ); char *Cmd_Cmd (void); // The functions that execute commands get their parameters with these // functions. Cmd_Argv () will return an empty string, not a NULL -- cgit