mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-12 23:07:55 +03:00
Merge pull request #315 from Wikot235/Fix-Flare-Issue
Fixed issue #314 (Env_flare crash)
This commit is contained in:
commit
7da95edde1
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user