From: tomaz Date: Sun, 22 Aug 2004 01:30:48 +0000 (+0000) Subject: Made qc profile command post an error message instead of crashing when used during... X-Git-Tag: xonotic-v0.1.0preview~5725 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f1a30ca511553fc174c86e6e108a8451dab19c82;p=xonotic%2Fdarkplaces.git 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 --- 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));