]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_exec.c
another attempt to fix quoted strings in windows commandline, but more so a cleanup
[xonotic/darkplaces.git] / 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));