diff options
author | tjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-10-13 18:58:57 +0000 |
---|---|---|
committer | tjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-10-13 18:58:57 +0000 |
commit | e6588d96c8e2603c51dc79a708864e0d0726f7d4 (patch) | |
tree | 751f316c11b8279a13017e73943a6489b25eb22e | |
parent | 0d3eac8c5e5026a9b41106dc73bc025fc5532899 (diff) | |
download | ioquake3-aero-e6588d96c8e2603c51dc79a708864e0d0726f7d4.tar.gz ioquake3-aero-e6588d96c8e2603c51dc79a708864e0d0726f7d4.zip |
* (bug 2893) OpenAL was not tracking one-shot sound effects to the entity's
position
git-svn-id: svn://svn.icculus.org/quake3/trunk@934 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r-- | code/client/snd_openal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c index 002867c..78781a4 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 { |