]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
write SND_SPEEDUSHORT4000 correctly
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 28 Sep 2011 04:43:41 +0000 (04:43 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 28 Sep 2011 04:43:41 +0000 (04:43 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11373 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index d7cee094276bcb6917f7fa7eff41b08a03bc5e4a..b2514171439a00d599e22b9feebd5ad25904cb12 100644 (file)
--- 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);