mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 12:40:04 +00:00
Merge pull request #2904 from Capostrophic/sound
Revert the changes for "bug" #4551
This commit is contained in:
commit
e6231f67e6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user