Try to handle qc execution warnings a little better, with less undefined behaviour.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5867 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-05-27 11:33:26 +00:00
parent 100850ee93
commit ff6c438d89

View file

@ -1542,10 +1542,11 @@ static pbool PR_ExecRunWarning (pubprogfuncs_t *ppf, int xstatement, char *error
if (prinst.pr_depth != 0) if (prinst.pr_depth != 0)
PR_StackTrace (ppf, false); PR_StackTrace (ppf, false);
if (progfuncs->funcs.debug_trace == 0) if (progfuncs->funcs.debug_trace == DEBUG_TRACE_OFF)
{ {
prinst.pr_xstatement = ShowStep(progfuncs, xstatement, string, false); prinst.pr_xstatement = ShowStep(progfuncs, xstatement, string, false);
return true; if (progfuncs->funcs.debug_trace != DEBUG_TRACE_OFF)
return true;
} }
return false; return false;
} }