From: divverent Date: Fri, 21 Dec 2007 14:00:52 +0000 (+0000) Subject: make precache_sound return the sound index (for using WriteStuff to send a sound... X-Git-Tag: xonotic-v0.1.0preview~2659 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=c18cbbf51e67960ea2eb39e934415236290200af;p=xonotic%2Fdarkplaces.git make precache_sound return the sound index (for using WriteStuff to send a sound just to some clients) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7832 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/svvm_cmds.c b/svvm_cmds.c index f291e49c..a48dda5d 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -866,8 +866,7 @@ static void VM_SV_findradius (void) static void VM_SV_precache_sound (void) { VM_SAFEPARMCOUNT(1, VM_SV_precache_sound); - SV_SoundIndex(PRVM_G_STRING(OFS_PARM0), 2); - PRVM_G_INT(OFS_RETURN) = PRVM_G_INT(OFS_PARM0); + PRVM_G_FLOAT(OFS_RETURN) = SV_SoundIndex(PRVM_G_STRING(OFS_PARM0), 2); } static void VM_SV_precache_model (void)