From 2077c9e2ab70414d121187b35dea0008f94b75cc Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 8 Jan 2009 08:26:25 +0000 Subject: [PATCH] now also save the old prog... hope THIS works always git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8629 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/host_cmd.c b/host_cmd.c index 06407556..01d0b191 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -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; } -- 2.39.2