mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 08:05:18 +02:00
Fix attached-to-object sounds having a higher reference distance
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user