From f20424afe5ca5b4f56fd4352bb1984b93de3f871 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 17 Mar 2011 20:35:14 +0900 Subject: [PATCH] Make "bad type" output more useful. Print the four (assumes non-v6) values in hex rather than "bad type". --- libs/gamecode/engine/pr_debug.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/gamecode/engine/pr_debug.c b/libs/gamecode/engine/pr_debug.c index 3c50a51db..8d7d34daf 100644 --- a/libs/gamecode/engine/pr_debug.c +++ b/libs/gamecode/engine/pr_debug.c @@ -661,7 +661,10 @@ value_string (progs_t *pr, etype_t type, pr_type_t *val) dsprintf (line, "%d", val->integer_var); break; default: - dsprintf (line, "bad type %i", type); + //dsprintf (line, "bad type %i", type); + dsprintf (line, "<%x %x %x %x>", + val[0].integer_var, val[1].integer_var, + val[2].integer_var, val[3].integer_var); break; }