We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b51c5c3 + 4f14f0c commit 7da95edCopy full SHA for 7da95ed
sp/src/game/server/hl2/weapon_flaregun.cpp
@@ -568,10 +568,13 @@ void CFlare::Start( float lifeTime )
568
//-----------------------------------------------------------------------------
569
void CFlare::Die( float fadeTime )
570
{
571
- m_flTimeBurnOut = gpGlobals->curtime + fadeTime;
+ if (m_bInActiveList)
572
+ {
573
+ m_flTimeBurnOut = gpGlobals->curtime + fadeTime;
574
- SetThink( &CFlare::FlareThink );
- SetNextThink( gpGlobals->curtime + 0.1f );
575
+ SetThink(&CFlare::FlareThink);
576
+ SetNextThink(gpGlobals->curtime + 0.1f);
577
+ }
578
}
579
580
0 commit comments