mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-13 16:37:57 +00:00
Move "build" cvar pointer check to GameDLLInit function.
This commit is contained in:
parent
6cc78b593d
commit
895e7b7503
@ -17,6 +17,8 @@
|
||||
#include "util.h"
|
||||
#include "game.h"
|
||||
|
||||
BOOL g_fIsXash3D;
|
||||
|
||||
cvar_t displaysoundlist = {"displaysoundlist","0"};
|
||||
|
||||
// multiplayer server rules
|
||||
@ -453,6 +455,8 @@ cvar_t sk_player_leg3 = { "sk_player_leg3","1" };
|
||||
void GameDLLInit( void )
|
||||
{
|
||||
// Register cvars here:
|
||||
if( CVAR_GET_POINTER( "build" ) )
|
||||
g_fIsXash3D = TRUE;
|
||||
|
||||
g_psv_gravity = CVAR_GET_POINTER( "sv_gravity" );
|
||||
g_psv_aim = CVAR_GET_POINTER( "sv_aim" );
|
||||
|
@ -28,7 +28,6 @@
|
||||
// Holds engine functionality callbacks
|
||||
enginefuncs_t g_engfuncs;
|
||||
globalvars_t *gpGlobals;
|
||||
BOOL g_fIsXash3D;
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
@ -54,7 +53,4 @@ extern "C" void DLLEXPORT EXPORT2 GiveFnptrsToDll( enginefuncs_t *pengfuncsFromE
|
||||
{
|
||||
memcpy( &g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t) );
|
||||
gpGlobals = pGlobals;
|
||||
|
||||
if( CVAR_GET_POINTER( "build" ) )
|
||||
g_fIsXash3D = TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user