Set flashlight time on restore.

This commit is contained in:
Andrey Akhmichin 2024-01-27 01:46:15 +05:00
parent 325c61f487
commit b2161d18d0
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}