mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 11:01:33 +00:00
Merge 034292377b
into ceb6d4d783
This commit is contained in:
commit
0cff84fbd5
1 changed files with 3 additions and 0 deletions
|
@ -950,11 +950,13 @@ void CAmbientGeneric::SendSound( SoundFlags_t flags)
|
|||
{
|
||||
UTIL_EmitAmbientSound( pSoundSource->GetSoundSourceIndex(), pSoundSource->GetAbsOrigin(), m_szSoundFile,
|
||||
0, SNDLVL_NONE, flags, 0);
|
||||
m_fActive = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
UTIL_EmitAmbientSound( pSoundSource->GetSoundSourceIndex(), pSoundSource->GetAbsOrigin(), m_szSoundFile,
|
||||
(m_dpv.vol * 0.01), m_iSoundLevel, flags, m_dpv.pitch);
|
||||
m_fActive = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -964,6 +966,7 @@ void CAmbientGeneric::SendSound( SoundFlags_t flags)
|
|||
{
|
||||
UTIL_EmitAmbientSound( m_nSoundSourceEntIndex, GetAbsOrigin(), m_szSoundFile,
|
||||
0, SNDLVL_NONE, flags, 0);
|
||||
m_fActive = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue