Skip to content

Commit

Permalink
Fixed: Bug when rocket detonate in air because of fuel out, launcher …
Browse files Browse the repository at this point in the history
…is stuck and not reloading.
  • Loading branch information
LevShisterov committed Dec 9, 2010
1 parent 52209ad commit 336bc05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dlls/rpg.cpp
Expand Up @@ -271,6 +271,11 @@ void CRpgRocket :: FollowThink( void )
pev->velocity = pev->velocity * 0.2 + vecTarget * flSpeed * 0.798;
if (pev->waterlevel == 0 && pev->velocity.Length() < 1500)
{
if ( m_pLauncher )
{
// my launcher is still around, tell it I'm dead.
m_pLauncher->m_cActiveRockets--;
}
Detonate( );
}
}
Expand Down

0 comments on commit 336bc05

Please sign in to comment.