mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-06-06 19:02:10 +03:00
Fixed a crash when npc_helicopter that is awaiting input is killed (#419)
This commit is contained in:
parent
93efcbbcfd
commit
41945409d8
@ -4055,9 +4055,12 @@ void CNPC_AttackHelicopter::Event_Killed( const CTakeDamageInfo &info )
|
||||
}
|
||||
|
||||
m_lifeState = LIFE_DYING;
|
||||
|
||||
CSoundEnvelopeController &controller = CSoundEnvelopeController::GetController();
|
||||
controller.SoundChangeVolume( m_pGunFiringSound, 0.0, 0.1f );
|
||||
|
||||
if ( GetSleepState() != AISS_WAITING_FOR_INPUT )
|
||||
{
|
||||
CSoundEnvelopeController& controller = CSoundEnvelopeController::GetController();
|
||||
controller.SoundChangeVolume( m_pGunFiringSound, 0.0, 0.1f );
|
||||
}
|
||||
|
||||
if( GetCrashPoint() == NULL )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user