NX/VITA: Don't spatialize sounds with no attenuation

This commit is contained in:
cypress 2023-11-30 12:30:48 -05:00 committed by GitHub
parent 8461381b9b
commit 466a375729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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;