From 41add6c01fd169ca2e59ee1ca801bd4fc958309f Mon Sep 17 00:00:00 2001 From: "Tony J. White =" Date: Fri, 13 Oct 2006 18:58:57 +0000 Subject: [PATCH] * (bug 2893) OpenAL was not tracking one-shot sound effects to the entity's position --- code/client/snd_openal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c index 002867c4..78781a47 100644 --- a/code/client/snd_openal.c +++ b/code/client/snd_openal.c @@ -866,8 +866,6 @@ void S_AL_StartSound( vec3_t origin, int entnum, int entchannel, sfxHandle_t sfx // Set up the effect if( origin == NULL ) { - srcList[ src ].isTracking = qtrue; - if( S_AL_HearingThroughEntity( entnum ) ) { // Where the entity is the local player, play a local sound @@ -879,6 +877,7 @@ void S_AL_StartSound( vec3_t origin, int entnum, int entchannel, sfxHandle_t sfx S_AL_SrcSetup( src, sfx, SRCPRI_ONESHOT, entnum, entchannel, qfalse ); VectorCopy( entityList[ entnum ].origin, sorigin ); } + srcList[ src ].isTracking = qtrue; } else {