summaryrefslogtreecommitdiffhomepage
path: root/src/sst.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-05-03 04:20:27 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-05-03 16:55:46 +0100
commit6d0db0d5bee0201b732149616a691827367cfb35 (patch)
tree842936f4ec6cb8e27ce10682de77728a4ea93bf9 /src/sst.c
parent19d96b65e1a840407a7280ab1f99d48d62932620 (diff)
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.
Diffstat (limited to 'src/sst.c')
-rw-r--r--src/sst.c5
1 files changed, 3 insertions, 2 deletions
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();