]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
now handle the SV_VM_Begin stuff correctly here
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Jan 2009 08:39:30 +0000 (08:39 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Jan 2009 08:39:30 +0000 (08:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8631 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index 01d0b191daf0ca02a47d4cc2d5de75fc9e2a51f6..0de8ba3ff137a7a1d4babc86fe717588b52ee7ac 100644 (file)
@@ -65,7 +65,6 @@ void Host_Status_f (void)
        void (*print) (const char *fmt, ...);
        char ip[22];
        int frags;
-       prvm_prog_t *prog0;
 
        if (cmd_source == src_command)
        {
@@ -83,10 +82,8 @@ void Host_Status_f (void)
        if (!sv.active)
                return;
        
-       prog0 = prog;
-       prog = NULL;
-
-       SV_VM_Begin();
+       if(cmd_source == src_command)
+               SV_VM_Begin();
        
        in = 0;
        if (Cmd_Argc() == 2)
@@ -194,9 +191,8 @@ void Host_Status_f (void)
                }
        }
 
-       SV_VM_End();
-
-       prog = prog0;
+       if(cmd_source == src_command)
+               SV_VM_End();
 }