]> de.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)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 1 Oct 2011 14:08:09 +0000 (16:08 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11373 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=87f75abf945db568a72881a8cb32073f940d0b79

sv_main.c

index c60e15b08e97ef7298ee16cc5c879a9f0158b574..6de804aa4abe86f0a621d5865ff9e311ac2c19f1 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);