From: divverent Date: Thu, 8 Jan 2009 08:26:25 +0000 (+0000) Subject: now also save the old prog... hope THIS works always X-Git-Tag: xonotic-v0.1.0preview~1963 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2077c9e2ab70414d121187b35dea0008f94b75cc;p=xonotic%2Fdarkplaces.git 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 --- 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; }