mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 20:50:42 +00:00
give the server progs access to the Cmd api
This commit is contained in:
parent
cb814165f8
commit
b4f9652535
2 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,7 @@ server_sources= crudefile.c sv_ccmds.c sv_cvar.c sv_ents.c \
|
||||||
|
|
||||||
qf_server_LIBS= \
|
qf_server_LIBS= \
|
||||||
$(SERVER_PLUGIN_STATIC_LIBS) \
|
$(SERVER_PLUGIN_STATIC_LIBS) \
|
||||||
|
$(top_builddir)/libs/gamecode/builtins/libQFcsqc.la \
|
||||||
$(top_builddir)/libs/models/libQFmodels.la \
|
$(top_builddir)/libs/models/libQFmodels.la \
|
||||||
$(top_builddir)/libs/gamecode/builtins/libQFgamecode_builtins.la \
|
$(top_builddir)/libs/gamecode/builtins/libQFgamecode_builtins.la \
|
||||||
$(top_builddir)/libs/gamecode/engine/libQFgamecode.la \
|
$(top_builddir)/libs/gamecode/engine/libQFgamecode.la \
|
||||||
|
|
|
@ -39,6 +39,7 @@ static const char rcsid[] =
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "QF/cmd.h"
|
#include "QF/cmd.h"
|
||||||
|
#include "QF/csqc.h" //FIXME d'oh, dumb name after all
|
||||||
#include "QF/cvar.h"
|
#include "QF/cvar.h"
|
||||||
#include "QF/sys.h"
|
#include "QF/sys.h"
|
||||||
|
|
||||||
|
@ -366,7 +367,9 @@ SV_Progs_Init (void)
|
||||||
sv_pr_state.prune_edict = prune_edict;
|
sv_pr_state.prune_edict = prune_edict;
|
||||||
sv_pr_state.free_edict = free_edict; // eww, I hate the need for this :(
|
sv_pr_state.free_edict = free_edict; // eww, I hate the need for this :(
|
||||||
|
|
||||||
|
PR_Resources_Init (&sv_pr_state);
|
||||||
SV_PR_Cmds_Init ();
|
SV_PR_Cmds_Init ();
|
||||||
|
Cmd_Progs_Init (&sv_pr_state);
|
||||||
|
|
||||||
Cmd_AddCommand ("edict", ED_PrintEdict_f, "Report information on a given "
|
Cmd_AddCommand ("edict", ED_PrintEdict_f, "Report information on a given "
|
||||||
"edict in the game. (edict (edict number))");
|
"edict in the game. (edict (edict number))");
|
||||||
|
|
Loading…
Reference in a new issue