]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
make precache_sound return the sound index (for using WriteStuff to send a sound...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Dec 2007 14:00:52 +0000 (14:00 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Dec 2007 14:00:52 +0000 (14:00 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7832 d7cf8633-e32d-0410-b094-e92efae38249

svvm_cmds.c

index f291e49c3a6fbf35839ca4473864c57561f3c1ae..a48dda5d35e9cc6d8f3af14e28c25c48b567d052 100644 (file)
@@ -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)