summaryrefslogtreecommitdiffhomepage
path: root/src/sst.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2021-12-27 03:14:47 +0000
committerMichael Smith <mikesmiffy128@gmail.com>2021-12-27 03:14:47 +0000
commit8eecc029568bbe8e2f3c0d9af218ad3f957251c9 (patch)
treecb2c8a75e051968aecfdc90b318634065c6986b0 /src/sst.c
parentcdb02fefa748dc05cc66b48ca973bfe21decc5e6 (diff)
Add custom demo packet stuff
This is more old code that wasn't part of the initial release. Figure I might as well throw it in for later.
Diffstat (limited to 'src/sst.c')
-rw-r--r--src/sst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sst.c b/src/sst.c
index 183a73a..176d5fb 100644
--- a/src/sst.c
+++ b/src/sst.c
@@ -68,6 +68,7 @@ ifacefactory factory_client = 0, factory_server = 0, factory_engine = 0;
// plonking ~~some bools~~ one bool here and worrying about it later. :^)
static bool has_autojump = false;
static bool has_demorec = false;
+static bool has_demorec_custom = false;
// HACK: later versions of L4D2 show an annoying dialog on every plugin_load.
// We can suppress this by catching the message string that's passed from
@@ -126,6 +127,7 @@ static bool do_load(ifacefactory enginef, ifacefactory serverf) {
nc: gamedata_init();
has_autojump = autojump_init();
has_demorec = demorec_init();
+ if (has_demorec) has_demorec_custom = demorec_custom_init();
fixes_apply();
// NOTE: this is technically redundant for early versions but I CBA writing