]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Made qc profile command post an error message instead of crashing when used during...
authortomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 22 Aug 2004 01:30:48 +0000 (01:30 +0000)
committertomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 22 Aug 2004 01:30:48 +0000 (01:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4352 d7cf8633-e32d-0410-b094-e92efae38249

pr_exec.c

index 5a5243e90dbb74039fe7578c9669ddeb3f90428a..efae41a42478bb29a9adff9ea9e4482265f0854b 100644 (file)
--- 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));