mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-08-03 20:24:36 +02:00
Stop teleporter spin sound when carried
This commit is contained in:
committed by
EricS-Valve
parent
11a677c349
commit
175f343ae4
@@ -186,6 +186,13 @@ void C_ObjectTeleporter::StopActiveEffects()
|
||||
ParticleProp()->StopEmission( m_hChargedRightArmEffect );
|
||||
m_hChargedRightArmEffect = NULL;
|
||||
}
|
||||
|
||||
if ( m_pSpinSound && IsCarried() )
|
||||
{
|
||||
CSoundEnvelopeController& controller = CSoundEnvelopeController::GetController();
|
||||
controller.SoundDestroy( m_pSpinSound );
|
||||
m_pSpinSound = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user