mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-02-08 17:32:14 +00:00
IOQ3 commit 2325
This commit is contained in:
parent
848751b48e
commit
e7569e8956
1 changed files with 3 additions and 1 deletions
|
@ -650,6 +650,7 @@ static src_t srcList[MAX_SRC];
|
||||||
static int srcCount = 0;
|
static int srcCount = 0;
|
||||||
static int srcActiveCnt = 0;
|
static int srcActiveCnt = 0;
|
||||||
static qboolean alSourcesInitialised = qfalse;
|
static qboolean alSourcesInitialised = qfalse;
|
||||||
|
static int lastListenerNumber = -1;
|
||||||
static vec3_t lastListenerOrigin = { 0.0f, 0.0f, 0.0f };
|
static vec3_t lastListenerOrigin = { 0.0f, 0.0f, 0.0f };
|
||||||
|
|
||||||
typedef struct sentity_s
|
typedef struct sentity_s
|
||||||
|
@ -752,7 +753,7 @@ static qboolean S_AL_HearingThroughEntity( int entityNum )
|
||||||
{
|
{
|
||||||
float distanceSq;
|
float distanceSq;
|
||||||
|
|
||||||
if( clc.clientNum == entityNum )
|
if( lastListenerNumber == entityNum )
|
||||||
{
|
{
|
||||||
// FIXME: <tim@ngus.net> 28/02/06 This is an outrageous hack to detect
|
// FIXME: <tim@ngus.net> 28/02/06 This is an outrageous hack to detect
|
||||||
// whether or not the player is rendering in third person or not. We can't
|
// whether or not the player is rendering in third person or not. We can't
|
||||||
|
@ -2347,6 +2348,7 @@ void S_AL_Respatialize( int entityNum, const vec3_t origin, vec3_t axis[3], int
|
||||||
orientation[0] = axis[0][0]; orientation[1] = axis[0][1]; orientation[2] = axis[0][2];
|
orientation[0] = axis[0][0]; orientation[1] = axis[0][1]; orientation[2] = axis[0][2];
|
||||||
orientation[3] = axis[2][0]; orientation[4] = axis[2][1]; orientation[5] = axis[2][2];
|
orientation[3] = axis[2][0]; orientation[4] = axis[2][1]; orientation[5] = axis[2][2];
|
||||||
|
|
||||||
|
lastListenerNumber = entityNum;
|
||||||
VectorCopy( sorigin, lastListenerOrigin );
|
VectorCopy( sorigin, lastListenerOrigin );
|
||||||
// Makro
|
// Makro
|
||||||
contents = CM_PointContents(sorigin, 0);
|
contents = CM_PointContents(sorigin, 0);
|
||||||
|
|
Loading…
Reference in a new issue