From 6d0db0d5bee0201b732149616a691827367cfb35 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 3 May 2022 04:20:27 +0100 Subject: Add entity property finding and L4D warp testing This was a lot more code than expected, but it might be finally close to time to release the next beta... We'll see if any more rabbit holes present themselves to jump into, though. --- src/sst.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/sst.c') diff --git a/src/sst.c b/src/sst.c index e75c9d8..13e8b19 100644 --- a/src/sst.c +++ b/src/sst.c @@ -32,6 +32,7 @@ #include "gameinfo.h" #include "gametype.h" #include "hook.h" +#include "l4dwarp.h" #include "nosleep.h" #include "os.h" #include "rinput.h" @@ -201,12 +202,11 @@ static bool already_loaded = false, skip_unload = false; static bool do_load(ifacefactory enginef, ifacefactory serverf) { factory_engine = enginef; factory_server = serverf; if (!con_init(enginef, ifacever)) return false; - engineapi_init(); // load some other interfaces + engineapi_init(); // load some other interfaces. also calls gamedata_init() // detect p1 for the benefit of specific features if (!GAMETYPE_MATCHES(Portal2) && con_findcmd("upgrade_portalgun")) { _gametype_tag |= _gametype_tag_Portal1; } - gamedata_init(); if (!gameinfo_init()) { con_disconnect(); return false; } const void **p = vtable_firstdiff; @@ -263,6 +263,7 @@ static bool do_load(ifacefactory enginef, ifacefactory serverf) { //if (has_demorec) demorec_custom_init(); bool has_ent = ent_init(); has_fov = fov_init(has_ent); + if (has_ent) l4dwarp_init(); has_nosleep = nosleep_init(); #ifdef _WIN32 has_rinput = rinput_init(); -- cgit v1.2.3