aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDesour <vorunbekannt75@web.de>2021-03-23 01:02:49 +0100
committersfan5 <sfan5@live.de>2021-03-23 15:43:40 +0100
commit437d01196899f85bbc77d71123018aa26be337da (patch)
tree0624670115ee4d8c4ff99bb202c45fc82c79f09a
parent2da1eee394554879bf1cee6bc0f7b77acf0b6c43 (diff)
downloadminetest-437d01196899f85bbc77d71123018aa26be337da.tar.gz
minetest-437d01196899f85bbc77d71123018aa26be337da.tar.bz2
minetest-437d01196899f85bbc77d71123018aa26be337da.zip
Fix attached-to-object sounds having a higher reference distance
-rw-r--r--src/client/sound_openal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/sound_openal.cpp b/src/client/sound_openal.cpp
index f4e61f93e..8dceeede6 100644
--- a/src/client/sound_openal.cpp
+++ b/src/client/sound_openal.cpp
@@ -671,8 +671,8 @@ public:
alSourcei(sound->source_id, AL_SOURCE_RELATIVE, false);
alSource3f(sound->source_id, AL_POSITION, pos.X, pos.Y, pos.Z);
- alSource3f(sound->source_id, AL_VELOCITY, 0, 0, 0);
- alSourcef(sound->source_id, AL_REFERENCE_DISTANCE, 30.0);
+ alSource3f(sound->source_id, AL_VELOCITY, 0.0f, 0.0f, 0.0f);
+ alSourcef(sound->source_id, AL_REFERENCE_DISTANCE, 10.0f);
}
bool updateSoundGain(int id, float gain)