]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix attached-to-object sounds having a higher reference distance
authorDesour <vorunbekannt75@web.de>
Tue, 23 Mar 2021 00:02:49 +0000 (01:02 +0100)
committersfan5 <sfan5@live.de>
Tue, 23 Mar 2021 14:43:40 +0000 (15:43 +0100)
src/client/sound_openal.cpp

index f4e61f93e332610576de7b31dea786cd1caad8ec..8dceeede65f1ca884715d0cfdda6135290c03700 100644 (file)
@@ -671,8 +671,8 @@ class OpenALSoundManager: public ISoundManager
 
                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)