fix lost channels (fixes both running out of channels and non-stop loops)

This commit is contained in:
Bill Currie 2007-03-22 08:27:54 +00:00 committed by Jeff Teunissen
parent f71d3da578
commit 9d165f317f

View file

@ -553,7 +553,6 @@ SND_StartSound (int entnum, int entchannel, sfx_t *sfx, const vec3_t origin,
vol = fvol * 255;
// spatialize
memset (target_chan, 0, sizeof (*target_chan));
VectorCopy (origin, target_chan->origin);
target_chan->dist_mult = attenuation / sound_nominal_clip_dist;
target_chan->master_vol = vol;