From 87f75abf945db568a72881a8cb32073f940d0b79 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 28 Sep 2011 04:43:41 +0000 Subject: [PATCH] write SND_SPEEDUSHORT4000 correctly git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11373 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv_main.c b/sv_main.c index d7cee094..b2514171 100644 --- a/sv_main.c +++ b/sv_main.c @@ -742,12 +742,12 @@ void SV_StartSound (prvm_edict_t *entity, int channel, const char *sample, int v field_mask |= SND_VOLUME; if (attenuation != DEFAULT_SOUND_PACKET_ATTENUATION) field_mask |= SND_ATTENUATION; + if (speed4000 && speed4000 != 4000) + field_mask |= SND_SPEEDUSHORT4000; if (ent >= 8192 || channel < 0 || channel > 7) field_mask |= SND_LARGEENTITY; if (sound_num >= 256) field_mask |= SND_LARGESOUND; - if (speed4000 && speed4000 != 4000) - field_mask |= SND_SPEEDUSHORT4000; // directed messages go only to the entity they are targeted on MSG_WriteByte (dest, svc_sound); -- 2.39.2