r934 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Oct 13 14:58:57 EDT 2006


Author: tjw
Date: 2006-10-13 14:58:57 -0400 (Fri, 13 Oct 2006)
New Revision: 934

Modified:
   trunk/code/client/snd_openal.c
Log:
* (bug 2893) OpenAL was not tracking one-shot sound effects to the entity's
  position


Modified: trunk/code/client/snd_openal.c
===================================================================
--- trunk/code/client/snd_openal.c	2006-10-12 13:13:08 UTC (rev 933)
+++ trunk/code/client/snd_openal.c	2006-10-13 18:58:57 UTC (rev 934)
@@ -866,8 +866,6 @@
 	// 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 @@
 			S_AL_SrcSetup( src, sfx, SRCPRI_ONESHOT, entnum, entchannel, qfalse );
 			VectorCopy( entityList[ entnum ].origin, sorigin );
 		}
+		srcList[ src ].isTracking = qtrue;
 	}
 	else
 	{




More information about the quake3-commits mailing list