]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
CSQC: support the sound pitch shift arg (NOT in SVQC yet)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Sep 2011 04:47:01 +0000 (04:47 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Sep 2011 04:47:01 +0000 (04:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11353 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c

index fd4207c6e57a08eb51a9c74939b260ad29c59549..0e3e515d44dd7e4bd1034476f0b1fbc8989185a2 100644 (file)
@@ -205,7 +205,7 @@ static void VM_CL_sound (void)
        }
 
        CL_VM_GetEntitySoundOrigin(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), org);
-       S_StartSound(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), org, volume, attenuation);
+       S_StartSound_StartPosition_Flags(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), org, volume, attenuation, 0, CHANNELFLAG_NONE, pitchchange > 0.0f ? pitchchange * 0.01f : 1.0f);
 }
 
 // #483 void(vector origin, string sample, float volume, float attenuation) pointsound