]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_exec.c
Make formatting sane
[xonotic/darkplaces.git] / pr_exec.c
index 368f485bd358015fc592c0985413c72cfd4e66ff..a631a7e3259ac66d5aa3f34da98c4631998caea7 100644 (file)
--- a/pr_exec.c
+++ b/pr_exec.c
@@ -365,7 +365,8 @@ PR_ExecuteProgram
 #define OPB ((eval_t *)&pr_globals[(unsigned short) st->b])
 #define OPC ((eval_t *)&pr_globals[(unsigned short) st->c])
 extern cvar_t pr_boundscheck;
-void PR_ExecuteProgram (func_t fnum, char *errormessage)
+extern cvar_t pr_traceqc;
+void PR_ExecuteProgram (func_t fnum, const char *errormessage)
 {
        dstatement_t    *st;
        dfunction_t     *f, *newf;
@@ -382,7 +383,7 @@ void PR_ExecuteProgram (func_t fnum, char *errormessage)
 
        f = &pr_functions[fnum];
 
-       pr_trace = false;
+       pr_trace = pr_traceqc.integer;
 
        // we know we're done when pr_depth drops to this
        exitdepth = pr_depth;