From: havoc Date: Wed, 28 Sep 2011 04:43:41 +0000 (+0000) Subject: write SND_SPEEDUSHORT4000 correctly X-Git-Tag: xonotic-v0.6.0~163^2~179 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=87f75abf945db568a72881a8cb32073f940d0b79;p=xonotic%2Fdarkplaces.git write SND_SPEEDUSHORT4000 correctly git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11373 d7cf8633-e32d-0410-b094-e92efae38249 --- 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);