From: divverent Date: Fri, 16 Sep 2011 04:47:01 +0000 (+0000) Subject: CSQC: support the sound pitch shift arg (NOT in SVQC yet) X-Git-Tag: xonotic-v0.6.0~312 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6b68850b3770d6ddd95c4485ace4f2e68e7d03a1;p=xonotic%2Fdarkplaces.git CSQC: support the sound pitch shift arg (NOT in SVQC yet) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11353 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=c9555eb003ce4836557a3b3c50871359cdd971c6 --- diff --git a/clvm_cmds.c b/clvm_cmds.c index 240e02b1..289d071c 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -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