From 11b991cf9dbf5f8df94a574b4d67f9c010c0add3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 16 Dec 2012 12:27:15 +0900 Subject: [PATCH] Print the error message before the state dump. Normally, the order doesn't matter, but when tracing code, it becomes very difficult to tell where the trace ends and the dump begins. Printing the message first puts the message between the trace and the dump: much easier :) --- libs/gamecode/pr_exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gamecode/pr_exec.c b/libs/gamecode/pr_exec.c index 0158bc5ef..8b1e989b0 100644 --- a/libs/gamecode/pr_exec.c +++ b/libs/gamecode/pr_exec.c @@ -62,10 +62,10 @@ PR_RunError (progs_t * pr, const char *error, ...) dvsprintf (string, error, argptr); va_end (argptr); - PR_DumpState (pr); - Sys_Printf ("%s\n", string->str); + PR_DumpState (pr); + // dump the stack so PR_Error can shutdown functions pr->pr_depth = 0;