From 35ae9f4a64bde705d93f77423ae64d9fd30705b1 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 7 Oct 2024 21:00:16 +0300 Subject: [PATCH] engine: client: don't save thirdperson value, it's not used anywhere --- engine/client/cl_game.c | 6 +----- engine/client/client.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/engine/client/cl_game.c b/engine/client/cl_game.c index 5de1b832..103be7bd 100644 --- a/engine/client/cl_game.c +++ b/engine/client/cl_game.c @@ -140,11 +140,7 @@ returns true if thirdperson is enabled */ qboolean CL_IsThirdPerson( void ) { - cl.local.thirdperson = clgame.dllFuncs.CL_IsThirdPerson(); - - if( cl.local.thirdperson ) - return true; - return false; + return clgame.dllFuncs.CL_IsThirdPerson() ? true : false; } /* diff --git a/engine/client/client.h b/engine/client/client.h index e9f28275..9eb97349 100644 --- a/engine/client/client.h +++ b/engine/client/client.h @@ -129,7 +129,6 @@ typedef struct // misc local info qboolean repredicting; // repredicting in progress - qboolean thirdperson; qboolean apply_effects; // local player will not added but we should apply their effects: flashlight etc float idealpitch; int viewmodel;