]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svvm_cmds.c
Add missing builtin to menudefs.qc, discovered by terencehill
[xonotic/darkplaces.git] / svvm_cmds.c
index 40523c7853bc414bca5a3c7d68e646d5c12c2f0a..12ef69dab455c345729fb55c0bcb73a7f5e81adb 100644 (file)
@@ -969,7 +969,7 @@ static void VM_SV_stuffcmd(prvm_prog_t *prog)
 
        old = host_client;
        host_client = svs.clients + entnum-1;
-       Host_ClientCommands ("%s", string);
+       SV_ClientCommands ("%s", string);
        host_client = old;
 }
 
@@ -2876,7 +2876,7 @@ static void VM_SV_setpause(prvm_prog_t *prog) {
        pauseValue = (int)PRVM_G_FLOAT(OFS_PARM0);
        if (pauseValue != 0) { //pause the game
                sv.paused = 1;
-               sv.pausedstart = realtime;
+               sv.pausedstart = host.realtime;
        } else { //disable pause, in case it was enabled
                if (sv.paused != 0) {
                        sv.paused = 0;