From 1589defda1538668b93d6a6583cf1f065d229e5e Mon Sep 17 00:00:00 2001 From: Velaron Date: Wed, 30 Aug 2023 12:14:58 +0300 Subject: [PATCH] ref: gl: don't create cl_righthand cvar --- ref/gl/gl_studio.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ref/gl/gl_studio.c b/ref/gl/gl_studio.c index 3329b447..54f958cd 100644 --- a/ref/gl/gl_studio.c +++ b/ref/gl/gl_studio.c @@ -3929,10 +3929,7 @@ void CL_InitStudioAPI( void ) pStudioDraw = &gStudioDraw; // trying to grab them from client.dll - cl_righthand = gEngfuncs.pfnGetCvarPointer( "cl_righthand", 0 ); - - if( cl_righthand == NULL ) - cl_righthand = gEngfuncs.Cvar_Get( "cl_righthand", "0", FCVAR_ARCHIVE, "flip viewmodel (left to right)" ); + cl_righthand = Cvar_FindVar( "cl_righthand" ); // Xash will be used internal StudioModelRenderer if( gEngfuncs.pfnGetStudioModelInterface( STUDIO_INTERFACE_VERSION, &pStudioDraw, &gStudioAPI ))