summaryrefslogtreecommitdiffhomepage
path: root/src/engineapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/engineapi.c')
-rw-r--r--src/engineapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engineapi.c b/src/engineapi.c
index fe34f64..768510d 100644
--- a/src/engineapi.c
+++ b/src/engineapi.c
@@ -37,6 +37,8 @@ ifacefactory factory_client = 0, factory_server = 0, factory_engine = 0,
struct VEngineClient *engclient;
struct VEngineServer *engserver;
+void *srvdll;
+
DECL_VFUNC(void *, GetGlobalVars, 1) // seems to be very stable, thank goodness
void *globalvars;
@@ -47,8 +49,6 @@ DECL_VFUNC_DYN(void *, GetAllServerClasses)
#include <entpropsinit.gen.h> // generated by build/mkentprops.c
-static void *srvdll;
-
bool engineapi_init(int pluginver) {
if (!con_detect(pluginver)) return false;
pluginhandler = factory_engine("ISERVERPLUGINHELPERS001", 0);
@@ -78,7 +78,7 @@ bool engineapi_init(int pluginver) {
vgui = factory_engine("VEngineVGui001", 0);
// TODO(compat): add this back when there's gamedata for 009 (no point atm)
- /*if (srvdll = factory_engine("ServerGameDLL009", 0)) {
+ /*if (srvdll = factory_server("ServerGameDLL009", 0)) {
_gametype_tag |= _gametype_tag_SrvDLL009;
}*/
if (srvdll = factory_server("ServerGameDLL005", 0)) {