diff --git a/src/openal.c b/src/openal.c index 8f31acd..b88cace 100644 --- a/src/openal.c +++ b/src/openal.c @@ -580,11 +580,10 @@ int PlatDo3dSound(int activeIndex) printf("PlatDo3dSound: idx = %d, volume = %d, distance = %d\n", activeIndex, newVolume, distance); -/* if (PlatChangeSoundVolume (activeIndex, newVolume) == SOUND_PLATFORMERROR) { return SOUND_PLATFORMERROR; } -*/ + if (distance < ActiveSounds[activeIndex].threedeedata.outer_range) { #if 0 ActiveSounds[activeIndex].PropSetP_pos[0] = ActiveSounds[activeIndex].threedeedata.position.vx; // 10000.0;