diff --git a/regamedll/dlls/sound.cpp b/regamedll/dlls/sound.cpp index baf5353cc..df22e4aca 100644 --- a/regamedll/dlls/sound.cpp +++ b/regamedll/dlls/sound.cpp @@ -182,13 +182,13 @@ void CAmbientGeneric::Restart() pev->nextthink = gpGlobals->time + 0.1f; if (!(pev->spawnflags & SF_AMBIENT_SOUND_NOT_LOOPING)) - { m_fLooping = TRUE; - m_fActive = TRUE; - } else m_fLooping = FALSE; + if (!(pev->spawnflags & SF_AMBIENT_SOUND_START_SILENT)) + m_fActive = TRUE; + if (m_fActive) { UTIL_EmitAmbientSound(ENT(pev), pev->origin, szSoundFile, (m_dpv.vol * 0.01f), m_flAttenuation, 0, m_dpv.pitch);