]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix another bug with sound pitchspeed parameter
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 28 Sep 2011 04:46:59 +0000 (04:46 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 28 Sep 2011 04:46:59 +0000 (04:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11374 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index b2514171439a00d599e22b9feebd5ad25904cb12..0e3d89be07ee8602e3bace4cc6336e00536f631f 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -736,7 +736,7 @@ void SV_StartSound (prvm_edict_t *entity, int channel, const char *sample, int v
 
        ent = PRVM_NUM_FOR_EDICT(entity);
 
-       speed4000 = (int)(speed * 40.0f);
+       speed4000 = (int)(speed * 4000.0f);
        field_mask = 0;
        if (volume != DEFAULT_SOUND_PACKET_VOLUME)
                field_mask |= SND_VOLUME;