mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 21:09:40 +00:00
Revert the changes for "bug" #4551
This commit is contained in:
parent
e2a4493fc0
commit
4a2fd1e140
1 changed files with 3 additions and 2 deletions
|
@ -147,10 +147,11 @@ namespace MWSound
|
||||||
volume = static_cast<float>(pow(10.0, (sound->mData.mVolume / 255.0*3348.0 - 3348.0) / 2000.0));
|
volume = static_cast<float>(pow(10.0, (sound->mData.mVolume / 255.0*3348.0 - 3348.0) / 2000.0));
|
||||||
min = sound->mData.mMinRange;
|
min = sound->mData.mMinRange;
|
||||||
max = sound->mData.mMaxRange;
|
max = sound->mData.mMaxRange;
|
||||||
if (min == 0)
|
if (min == 0 && max == 0)
|
||||||
|
{
|
||||||
min = fAudioDefaultMinDistance;
|
min = fAudioDefaultMinDistance;
|
||||||
if (max == 0)
|
|
||||||
max = fAudioDefaultMaxDistance;
|
max = fAudioDefaultMaxDistance;
|
||||||
|
}
|
||||||
|
|
||||||
min *= fAudioMinDistanceMult;
|
min *= fAudioMinDistanceMult;
|
||||||
max *= fAudioMaxDistanceMult;
|
max *= fAudioMaxDistanceMult;
|
||||||
|
|
Loading…
Reference in a new issue