From a035893379bc5b15ca8be10a41e004314bae3ea2 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 8 Jan 2009 08:39:30 +0000 Subject: [PATCH] now handle the SV_VM_Begin stuff correctly here git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8631 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/host_cmd.c b/host_cmd.c index 01d0b191..0de8ba3f 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -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(); } -- 2.39.2