]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
now also save the old prog... hope THIS works always
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Jan 2009 08:26:25 +0000 (08:26 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Jan 2009 08:26:25 +0000 (08:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8629 d7cf8633-e32d-0410-b094-e92efae38249

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;
 }