run errors are better now.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@402 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-11-08 11:45:45 +00:00
parent 8d7f132afc
commit 53ffe9c50e
1 changed files with 4 additions and 2 deletions

View File

@ -198,16 +198,18 @@ void VARGS PR_RunError (progfuncs_t *progfuncs, char *error, ...)
Q_vsnprintf (string,sizeof(string)-1, error,argptr); Q_vsnprintf (string,sizeof(string)-1, error,argptr);
va_end (argptr); va_end (argptr);
SV_EndRedirect();
// PR_PrintStatement (pr_statements + pr_xstatement); // PR_PrintStatement (pr_statements + pr_xstatement);
PR_StackTrace (progfuncs); PR_StackTrace (progfuncs);
printf ("%s\n", string); printf ("\n");
//editbadfile(pr_strings + pr_xfunction->s_file, -1); //editbadfile(pr_strings + pr_xfunction->s_file, -1);
pr_depth = 0; // dump the stack so host_error can shutdown functions pr_depth = 0; // dump the stack so host_error can shutdown functions
prinst->exitdepth = 0; prinst->exitdepth = 0;
Abort ("Program error"); Abort (string);
} }
/* /*