From 1c2c61a397bb9cffc892e79c23ede24b5527635f Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:38:44 +0200 Subject: [PATCH] Engine: fix compile error Preprocessor directive should've been used on newly added CHLClient::Init + fixed missing include. --- src/engine/client/cdll_engine_int.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/client/cdll_engine_int.cpp b/src/engine/client/cdll_engine_int.cpp index 8000e6b9..e92fa635 100644 --- a/src/engine/client/cdll_engine_int.cpp +++ b/src/engine/client/cdll_engine_int.cpp @@ -14,12 +14,14 @@ #include "windows/id3dx.h" #include "geforce/reflex.h" #include "vengineclient_impl.h" +#include "globalvars_base.h" #include "cdll_engine_int.h" #ifndef DEDICATED #include "materialsystem/cmaterialsystem.h" #endif // !DEDICATED /*****************************************************************************/ +#ifndef DEDICATED static CGlobalVarsBase dummyvars(true); // So stuff that might reference gpGlobals during DLL initialization won't have a NULL pointer. // Once the engine calls Init on this DLL, this pointer gets assigned to the shared data in the engine @@ -31,7 +33,6 @@ int CHLClient::Init(CHLClient* thisptr, CreateInterfaceFn appSystemFactory, CGlo return CHLClient__Init(thisptr, appSystemFactory, pGlobals); } -#ifndef DEDICATED //----------------------------------------------------------------------------- // Purpose: pre frame stage notify hook //-----------------------------------------------------------------------------