Skip to content

Commit

Permalink
NX/VITA: Don't spatialize sounds with no attenuation
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy authored Nov 30, 2023
1 parent 8461381 commit 466a375
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/snd_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,9 @@ void SND_Spatialize (channel_t *ch)
vec_t lscale, rscale, scale;
vec3_t source_vec;

// anything coming from the view entity will always be full volume
if (ch->entnum == cl.viewentity)
// anything coming from the view entity will always be full volume
// cypress -- added full volume for no attenuation.
if (ch->entnum == cl.viewentity || ch->dist_mult == 0)
{
ch->leftvol = ch->master_vol;
ch->rightvol = ch->master_vol;
Expand Down

0 comments on commit 466a375

Please sign in to comment.