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.)

This commit is contained in:
Zack Middleton 2012-10-17 20:39:45 +00:00
parent ce9f2ee5f9
commit d49d0753eb
3 changed files with 68 additions and 10 deletions

View file

@ -574,9 +574,6 @@ static void _S_AL_SanitiseVector( vec3_t v, int line )
}
}
#define AL_THIRD_PERSON_THRESHOLD_SQ (48.0f*48.0f)
/*
=================
S_AL_Gain
@ -635,6 +632,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 )
@ -653,7 +652,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