mirror of https://github.com/FWGS/hlsdk-xash3d
Set flashlight time on restore.
This commit is contained in:
parent
325c61f487
commit
b2161d18d0
|
@ -3012,6 +3012,9 @@ int CBasePlayer::Restore( CRestore &restore )
|
||||||
// Barring that, we clear it out here instead of using the incorrect restored time value.
|
// Barring that, we clear it out here instead of using the incorrect restored time value.
|
||||||
m_flNextAttack = UTIL_WeaponTimeBase();
|
m_flNextAttack = UTIL_WeaponTimeBase();
|
||||||
#endif
|
#endif
|
||||||
|
if( m_flFlashLightTime == 0.0f )
|
||||||
|
m_flFlashLightTime = 1.0f;
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue