diff --git a/source/gameengine/Ketsji/KX_SoundActuator.cpp b/source/gameengine/Ketsji/KX_SoundActuator.cpp index 4e5cd0a..06e0244 100644 --- a/source/gameengine/Ketsji/KX_SoundActuator.cpp +++ b/source/gameengine/Ketsji/KX_SoundActuator.cpp @@ -122,6 +122,9 @@ void KX_SoundActuator::play() if (m_is3d && handle3d.get()) { handle3d->setRelative(true); + // values of gain greater than 1.0 not allowed to avoid cut sound bug #T40876 + if (m_3d.max_gain > 1.0f) + m_3d.max_gain = 1.0f; handle3d->setVolumeMaximum(m_3d.max_gain); handle3d->setVolumeMinimum(m_3d.min_gain); handle3d->setDistanceReference(m_3d.reference_distance);