From f1a30ca511553fc174c86e6e108a8451dab19c82 Mon Sep 17 00:00:00 2001 From: tomaz Date: Sun, 22 Aug 2004 01:30:48 +0000 Subject: [PATCH] Made qc profile command post an error message instead of crashing when used during demo playback. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4352 d7cf8633-e32d-0410-b094-e92efae38249 --- pr_exec.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pr_exec.c b/pr_exec.c index 5a5243e9..efae41a4 100644 --- a/pr_exec.c +++ b/pr_exec.c @@ -215,6 +215,12 @@ void PR_Profile_f (void) mfunction_t *f, *best; int i, num, max/*, howmany*/; + if (!sv.active) + { + Con_Printf("no server running, can't profile\n"); + return; + } + //howmany = 10; //if (Cmd_Argc() == 2) // howmany = atoi(Cmd_Argv(1)); -- 2.39.2