From b2161d18d05525dbe28f08f26e4f2c91658fca31 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Sat, 27 Jan 2024 01:46:15 +0500 Subject: [PATCH] Set flashlight time on restore. --- dlls/player.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/player.cpp b/dlls/player.cpp index fe5f92e6..83ff51cd 100644 --- a/dlls/player.cpp +++ b/dlls/player.cpp @@ -3012,6 +3012,9 @@ int CBasePlayer::Restore( CRestore &restore ) // Barring that, we clear it out here instead of using the incorrect restored time value. m_flNextAttack = UTIL_WeaponTimeBase(); #endif + if( m_flFlashLightTime == 0.0f ) + m_flFlashLightTime = 1.0f; + return status; }