summaryrefslogtreecommitdiff
path: root/src/client/snd_openal.c
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2012-10-17 20:39:45 +0000
committerTim Angus <tim@ngus.net>2013-01-12 20:48:53 +0000
commit7dd5613627371177d89b4807e6be1a0a93600a8f (patch)
tree748aa3433b12691045c8fcbefd1156940d40025f /src/client/snd_openal.c
parentdcefbc80d07e9453dc8f1109687f6325960a6b48 (diff)
When in third person, don't play player's sounds as full volume in Base sound system. OpenAL already does this. (Related to bug 5741.)
Diffstat (limited to 'src/client/snd_openal.c')
-rw-r--r--src/client/snd_openal.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/snd_openal.c b/src/client/snd_openal.c
index ce669f1d..bded5184 100644
--- a/src/client/snd_openal.c
+++ b/src/client/snd_openal.c
@@ -593,9 +593,6 @@ static void _S_AL_SanitiseVector( vec3_t v, int line )
}
}
-
-#define AL_THIRD_PERSON_THRESHOLD_SQ (48.0f*48.0f)
-
/*
=================
S_AL_Gain
@@ -654,6 +651,8 @@ static void S_AL_ScaleGain(src_t *chksrc, vec3_t origin)
/*
=================
S_AL_HearingThroughEntity
+
+Also see S_Base_HearingThroughEntity
=================
*/
static qboolean S_AL_HearingThroughEntity( int entityNum )
@@ -672,7 +671,7 @@ static qboolean S_AL_HearingThroughEntity( int entityNum )
entityList[ entityNum ].origin,
lastListenerOrigin );
- if( distanceSq > AL_THIRD_PERSON_THRESHOLD_SQ )
+ if( distanceSq > THIRD_PERSON_THRESHOLD_SQ )
return qfalse; //we're the player, but third person
else
return qtrue; //we're the player