diff --git a/source/gameengine/GameLogic/SCA_SoundActuator.cpp b/source/gameengine/GameLogic/SCA_SoundActuator.cpp index 66f18ba..ce337be 100644 --- a/source/gameengine/GameLogic/SCA_SoundActuator.cpp +++ b/source/gameengine/GameLogic/SCA_SoundActuator.cpp @@ -119,6 +119,9 @@ void SCA_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);