2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-25 11:19:39 +01:00

Check if we have sv_language cvar to detect Xash3D.

This commit is contained in:
Andrey Akhmichin 2024-01-15 10:10:02 +05:00
parent 38950e4e41
commit 90193a9383

View File

@ -462,7 +462,7 @@ cvar_t sk_player_leg3 = { "sk_player_leg3","1" };
void GameDLLInit( void ) void GameDLLInit( void )
{ {
// Register cvars here: // Register cvars here:
if( CVAR_GET_POINTER( "build" ) ) if( !CVAR_GET_POINTER( "sv_language" ) )
g_fIsXash3D = TRUE; g_fIsXash3D = TRUE;
g_psv_gravity = CVAR_GET_POINTER( "sv_gravity" ); g_psv_gravity = CVAR_GET_POINTER( "sv_gravity" );