2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 01:47:45 +01:00

Set flashlight time on restore.

This commit is contained in:
Andrey Akhmichin 2024-01-27 01:46:15 +05:00
parent 325c61f487
commit b2161d18d0

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