]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - mvm_cmds.c
DP_SND_GETSOUNDTIME extension (query sound progress on entities and length of sound...
[xonotic/darkplaces.git] / mvm_cmds.c
index bc43c092af2d417427191e2461ec1d287ae15f55..d21c0819cbafcdf98ebe8369554b041aa141ba45 100644 (file)
@@ -233,6 +233,7 @@ void VM_M_getserverliststat( void )
                return;
        case 1:
                PRVM_G_FLOAT ( OFS_RETURN ) = serverlist_cachecount;
+               return;
        case 2:
                PRVM_G_FLOAT ( OFS_RETURN ) = masterquerycount;
                return;
@@ -1313,8 +1314,8 @@ NULL,                                                                     // #529
 NULL,                                                                  // #530
 NULL,                                                                  // #531
 VM_log,                                                                        // #532
-NULL,                                                                  // #533
-NULL,                                                                  // #534
+VM_getsoundtime,                                               // #533 float(entity e, float channel) getsoundtime = #533; (DP_SND_GETSOUNDTIME)
+VM_soundlength,                                                        // #534 float(string sample) soundlength = #534; (DP_SND_GETSOUNDTIME)
 NULL,                                                                  // #535
 NULL,                                                                  // #536
 NULL,                                                                  // #537