X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=pr_exec.c;h=a631a7e3259ac66d5aa3f34da98c4631998caea7;hb=a79a57664e9b2420bb4b5a06cde2e84b7191e967;hp=368f485bd358015fc592c0985413c72cfd4e66ff;hpb=dbce962f09403fd5888d0bd858ceefc90bc3ea2b;p=xonotic%2Fdarkplaces.git diff --git a/pr_exec.c b/pr_exec.c index 368f485b..a631a7e3 100644 --- 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;