1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

Revert the changes for "bug" #4551

This commit is contained in:
Capostrophic 2020-06-11 00:06:37 +03:00
parent e2a4493fc0
commit 4a2fd1e140

View file

@ -147,10 +147,11 @@ namespace MWSound
volume = static_cast<float>(pow(10.0, (sound->mData.mVolume / 255.0*3348.0 - 3348.0) / 2000.0));
min = sound->mData.mMinRange;
max = sound->mData.mMaxRange;
if (min == 0)
if (min == 0 && max == 0)
{
min = fAudioDefaultMinDistance;
if (max == 0)
max = fAudioDefaultMaxDistance;
}
min *= fAudioMinDistanceMult;
max *= fAudioMaxDistanceMult;