summaryrefslogtreecommitdiffhomepage
path: root/src/engineapi.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-11-20 20:22:55 +0000
committerMichael Smith <mikesmiffy128@gmail.com>2023-12-04 19:30:09 +0000
commit324ebec00666aeaa45828712fcc27b70ef86350a (patch)
treeb4353c23d9237c3acd2bac82b9b3f923e52244d5 /src/engineapi.c
parent44d805746e27c58f906ba73f541abcb363323a75 (diff)
Add cutscene skipping to L4D quick reset
Also done with quite a lot of RE help from bill - thanks again!
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)) {