summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/cmd.c13
-rw-r--r--src/qcommon/q_shared.h1
-rw-r--r--src/qcommon/qcommon.h1
3 files changed, 14 insertions, 1 deletions
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
@@ -416,6 +416,18 @@ void Cmd_ArgsBuffer( char *buffer, int 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
Retrieve the unmodified command string
@@ -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