Engine: fix compile error

Preprocessor directive should've been used on newly added CHLClient::Init + fixed missing include.
This commit is contained in:
Kawe Mazidjatari 2024-07-31 22:38:44 +02:00
parent 2dcc849e2d
commit 1c2c61a397

View File

@ -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
//-----------------------------------------------------------------------------