mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-11-25 13:21:18 +00:00
Don't spatialize sounds with no attenuation
This commit is contained in:
parent
7976734bd4
commit
a51908607e
1 changed files with 3 additions and 2 deletions
|
@ -388,8 +388,9 @@ void SND_Spatialize(channel_t *ch)
|
||||||
vec3_t source_vec;
|
vec3_t source_vec;
|
||||||
sfx_t *snd;
|
sfx_t *snd;
|
||||||
|
|
||||||
// anything coming from the view entity will always be full volume
|
// anything coming from the view entity will always be full volume
|
||||||
if (ch->entnum == cl.viewentity)
|
// cypress -- added full volume for no attenuation.
|
||||||
|
if (ch->entnum == cl.viewentity || ch->dist_mult == 0)
|
||||||
{
|
{
|
||||||
ch->leftvol = ch->master_vol;
|
ch->leftvol = ch->master_vol;
|
||||||
ch->rightvol = ch->master_vol;
|
ch->rightvol = ch->master_vol;
|
||||||
|
|
Loading…
Reference in a new issue