Merge pull request #315 from Wikot235/Fix-Flare-Issue

Fixed issue #314 (Env_flare crash)
This commit is contained in:
Blixibon 2025-01-04 08:43:54 -06:00 committed by GitHub
commit 7da95edde1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -568,10 +568,13 @@ void CFlare::Start( float lifeTime )
//-----------------------------------------------------------------------------
void CFlare::Die( float fadeTime )
{
m_flTimeBurnOut = gpGlobals->curtime + fadeTime;
if (m_bInActiveList)
{
m_flTimeBurnOut = gpGlobals->curtime + fadeTime;
SetThink( &CFlare::FlareThink );
SetNextThink( gpGlobals->curtime + 0.1f );
SetThink(&CFlare::FlareThink);
SetNextThink(gpGlobals->curtime + 0.1f);
}
}
//-----------------------------------------------------------------------------