]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
now also save the old prog... hope THIS works always
[xonotic/darkplaces.git] / host_cmd.c
index 0640755657e81f56801059405622c1e3ef01daa9..01d0b191daf0ca02a47d4cc2d5de75fc9e2a51f6 100644 (file)
@@ -65,6 +65,7 @@ void Host_Status_f (void)
        void (*print) (const char *fmt, ...);
        char ip[22];
        int frags;
+       prvm_prog_t *prog0;
 
        if (cmd_source == src_command)
        {
@@ -82,6 +83,9 @@ void Host_Status_f (void)
        if (!sv.active)
                return;
        
+       prog0 = prog;
+       prog = NULL;
+
        SV_VM_Begin();
        
        in = 0;
@@ -191,6 +195,8 @@ void Host_Status_f (void)
        }
 
        SV_VM_End();
+
+       prog = prog0;
 }