Skip to content

Fixed issue #314 (Env_flare crash) #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed the issue.
  • Loading branch information
Wikot235 committed Aug 7, 2024
commit 4f14f0c5cc056a8d8a121ccbbbab858e9db74e6d
9 changes: 6 additions & 3 deletions sp/src/game/server/hl2/weapon_flaregun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

//-----------------------------------------------------------------------------
Expand Down
Loading