From 4c7ce6d61405191e587674be23aed890a98ba278 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 31 Mar 2000 01:56:52 +0000 Subject: [PATCH] give qw-server maplist and move the prototype from cl_main.c to quakefs.h --- common/cl_main.c | 1 - common/quakefs.h | 1 + qw_server/sv_main.c | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/cl_main.c b/common/cl_main.c index 3ecd987..a8a63d3 100644 --- a/common/cl_main.c +++ b/common/cl_main.c @@ -132,7 +132,6 @@ cvar_t *cl_talksound; extern cvar_t *sys_nostdout; -extern void COM_Maplist_f (void); cvar_t *localid; #ifdef QUAKEWORLD diff --git a/common/quakefs.h b/common/quakefs.h index 9660f26..1753bf9 100644 --- a/common/quakefs.h +++ b/common/quakefs.h @@ -55,5 +55,6 @@ void COM_CreatePath (char *path); void COM_Gamedir (char *dir); void COM_InitFilesystem (void); void COM_Path_f (void); +void COM_Maplist_f (void); #endif // _QUAKEFS_H diff --git a/qw_server/sv_main.c b/qw_server/sv_main.c index 41678c3..69cb50f 100644 --- a/qw_server/sv_main.c +++ b/qw_server/sv_main.c @@ -1436,6 +1436,7 @@ void SV_InitLocal (void) Cmd_AddCommand ("removeip", SV_RemoveIP_f); Cmd_AddCommand ("listip", SV_ListIP_f); Cmd_AddCommand ("writeip", SV_WriteIP_f); + Cmd_AddCommand ("maplist", COM_Maplist_f); for (i=0 ; i