summaryrefslogtreecommitdiff
path: root/source/cmd.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-08-16 10:19:42 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-08-16 10:19:42 +0000
commit1526e22e4ff29153e9c127081e8ea8d9e2f33b8c (patch)
treeb361766433d4a7b4a111865afd52803e2bbf7754 /source/cmd.c
parente826e5f176f21cd18b3bbc22887a266835ada57c (diff)
Split some monolithic include files into smaller ones.
Use single BSP models cache for refresh and collision subsystems. Refresh libraries may not longer be dynamically loaded. Made gi.TagMalloc use separate tag namespace to avoid conflicts with engine reserverd tags. Fixed listing order of MVD channels in chooser menu. A lot of misc changes... MSVC build is definitely broken now.
Diffstat (limited to 'source/cmd.c')
-rw-r--r--source/cmd.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/source/cmd.c b/source/cmd.c
index d743b90..b725526 100644
--- a/source/cmd.c
+++ b/source/cmd.c
@@ -20,13 +20,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// cmd.c -- Quake script command processing module
#include "com_local.h"
+#include "files.h"
#include "q_list.h"
#define Cmd_Malloc( size ) Z_TagMalloc( size, TAG_CMD )
#define Cmd_CopyString( string ) Z_TagCopyString( string, TAG_CMD )
-cmdAPI_t cmd;
-
/*
=============================================================================
@@ -390,7 +389,7 @@ static void Cmd_UnAlias_f( void ) {
Z_Free( a );
}
-#ifndef DEDICATED_ONLY
+#if USE_CLIENT
void Cmd_WriteAliases( fileHandle_t f ) {
cmdalias_t *a;
@@ -1465,23 +1464,6 @@ static void Cmd_Complete_f( void ) {
void Com_Mixed_c( genctx_t *ctx, int argnum ) {
}
-/*
-============
-Cmd_FillAPI
-============
-*/
-void Cmd_FillAPI( cmdAPI_t *api ) {
- api->AddCommand = Cmd_AddCommand;
- api->Register = Cmd_Register;
- api->Deregister = Cmd_Deregister;
- api->RemoveCommand = Cmd_RemoveCommand;
- api->Argc = Cmd_Argc;
- api->Argv = Cmd_Argv;
- api->ArgsFrom = Cmd_ArgsFrom;
- api->ExecuteText = Cbuf_ExecuteText;
- api->FindFunction = Cmd_FindFunction;
-}
-
static const cmdreg_t c_cmd[] = {
{ "cmdlist", Cmd_List_f },
{ "macrolist", Cmd_MacroList_f },
@@ -1516,6 +1498,5 @@ void Cmd_Init( void ) {
}
Cmd_Register( c_cmd );
- Cmd_FillAPI( &cmd );
}