From 1fc7547a5325a50cbade11fe4fda570c6ddaec84 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 30 Jul 2024 15:18:15 +0300 Subject: [PATCH] engine: client: clean up scr_viewsize remnants, don't tell client.dll scr_viewsize cvar value --- engine/client/cl_view.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_view.c b/engine/client/cl_view.c index 7ead100d..0310b2cf 100644 --- a/engine/client/cl_view.c +++ b/engine/client/cl_view.c @@ -35,7 +35,7 @@ static void V_CalcViewRect( void ) int sb_lines; float size; - if( FBitSet( host.features, ENGINE_QUAKE_COMPATIBLE )) + if( Host_IsQuakeCompatible( )) { // intermission is always full screen if( cl.intermission ) size = 120.0f; @@ -144,7 +144,9 @@ static void V_SetRefParams( ref_params_t *fd ) VectorCopy( cl.viewangles, fd->cl_viewangles ); fd->health = cl.local.health; VectorCopy( cl.crosshairangle, fd->crosshairangle ); - fd->viewsize = scr_viewsize.value; + if( Host_IsQuakeCompatible( )) + fd->viewsize = scr_viewsize.value; + else fd->viewsize = 120.0f; VectorCopy( cl.punchangle, fd->punchangle ); fd->maxclients = cl.maxclients;