Skip to content

Commit 437d011

Browse files
Desoursfan5
authored andcommittedMar 23, 2021
Fix attached-to-object sounds having a higher reference distance
1 parent 2da1eee commit 437d011

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/client/sound_openal.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,8 @@ class OpenALSoundManager: public ISoundManager
671671

672672
alSourcei(sound->source_id, AL_SOURCE_RELATIVE, false);
673673
alSource3f(sound->source_id, AL_POSITION, pos.X, pos.Y, pos.Z);
674-
alSource3f(sound->source_id, AL_VELOCITY, 0, 0, 0);
675-
alSourcef(sound->source_id, AL_REFERENCE_DISTANCE, 30.0);
674+
alSource3f(sound->source_id, AL_VELOCITY, 0.0f, 0.0f, 0.0f);
675+
alSourcef(sound->source_id, AL_REFERENCE_DISTANCE, 10.0f);
676676
}
677677

678678
bool updateSoundGain(int id, float gain)

0 commit comments

Comments
 (0)
Please sign in to comment.