From 2be8fb9c110c1573a692ec080f01280efd530285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=BE=D0=B2?= <22411953+Vladislav4KZ@users.noreply.github.com> Date: Wed, 25 Mar 2026 08:46:43 +0000 Subject: [PATCH] fix: hide flashlight icon in first-person spectator mode --- cl_dll/flashlight.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cl_dll/flashlight.cpp b/cl_dll/flashlight.cpp index e0b1673e1..20b2c6fc6 100644 --- a/cl_dll/flashlight.cpp +++ b/cl_dll/flashlight.cpp @@ -26,6 +26,7 @@ #include #include "draw_util.h" +#include "pm_shared.h" #define BAT_NAME "sprites/%d_Flashlight.spr" @@ -92,6 +93,9 @@ int CHudFlashlight::Draw(float flTime) if (!(gHUD.m_iWeaponBits & (1<<(WEAPON_SUIT)) )) return 1; + if (g_iUser1 == OBS_IN_EYE) + return 1; + if (m_fOn) a = 225; else