give qw-server maplist and move the prototype from cl_main.c to quakefs.h

This commit is contained in:
Bill Currie 2000-03-31 01:56:52 +00:00
parent 93069db909
commit 4c7ce6d614
3 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,6 @@ cvar_t *cl_talksound;
extern cvar_t *sys_nostdout; extern cvar_t *sys_nostdout;
extern void COM_Maplist_f (void);
cvar_t *localid; cvar_t *localid;
#ifdef QUAKEWORLD #ifdef QUAKEWORLD

View File

@ -55,5 +55,6 @@ void COM_CreatePath (char *path);
void COM_Gamedir (char *dir); void COM_Gamedir (char *dir);
void COM_InitFilesystem (void); void COM_InitFilesystem (void);
void COM_Path_f (void); void COM_Path_f (void);
void COM_Maplist_f (void);
#endif // _QUAKEFS_H #endif // _QUAKEFS_H

View File

@ -1436,6 +1436,7 @@ void SV_InitLocal (void)
Cmd_AddCommand ("removeip", SV_RemoveIP_f); Cmd_AddCommand ("removeip", SV_RemoveIP_f);
Cmd_AddCommand ("listip", SV_ListIP_f); Cmd_AddCommand ("listip", SV_ListIP_f);
Cmd_AddCommand ("writeip", SV_WriteIP_f); Cmd_AddCommand ("writeip", SV_WriteIP_f);
Cmd_AddCommand ("maplist", COM_Maplist_f);
for (i=0 ; i<MAX_MODELS ; i++) for (i=0 ; i<MAX_MODELS ; i++)
snprintf(localmodels[i], sizeof(localmodels[i]), "*%i", i); snprintf(localmodels[i], sizeof(localmodels[i]), "*%i", i);