]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
parse gridsize like q3map2 does (less strict)
[xonotic/darkplaces.git] / snd_main.c
index 9be23f2b30a331562557e743f6109b066ed60b43..de717fba8eb01b8e1d32f53022e3649ab22333e1 100644 (file)
@@ -1466,7 +1466,8 @@ int S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float f
                        if (ch->entnum == entnum && (ch->entchannel == entchannel || entchannel == -1) )
                        {
                                S_SetChannelVolume(ch_idx, fvol);
-                               ch->dist_mult = attenuation / (64.0f * snd_soundradius.value);
+                               ch->dist_mult = attenuation / snd_soundradius.value;
+                               SND_Spatialize(ch, false);
                                return ch_idx;
                        }
                }