From ee309ae2fd3fe225604fb2f47f53c1865079fa2b Mon Sep 17 00:00:00 2001 From: sezero Date: Sat, 20 Feb 2010 00:00:40 +0000 Subject: [PATCH] pr_exec.c (PR_Profile_f): the profile command can only be run when the server is active. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@67 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/pr_exec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Quake/pr_exec.c b/Quake/pr_exec.c index c5c79a6b..7a85b8ba 100644 --- a/Quake/pr_exec.c +++ b/Quake/pr_exec.c @@ -227,6 +227,9 @@ void PR_Profile_f (void) int num; int i; + if (!sv.active) + return; + num = 0; do {