From 5f66bfe887342d33e54e4bbe1e19e04bdc3243a7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 20 Jan 2022 18:37:28 +0900 Subject: [PATCH] [gamecode] Update printed opcode width Opcodes now need 3 hex digits (hexits?) to print. --- libs/gamecode/pr_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gamecode/pr_debug.c b/libs/gamecode/pr_debug.c index 32f6a8dd9..794005174 100644 --- a/libs/gamecode/pr_debug.c +++ b/libs/gamecode/pr_debug.c @@ -1586,7 +1586,7 @@ PR_PrintStatement (progs_t *pr, dstatement_t *s, int contents) dasprintf (res->line, "%04x ", addr); if (pr_debug->int_val > 2) { dasprintf (res->line, - "%02x %04x(%8s)[%d] %04x(%8s)[%d] %04x(%8s)[%d]\t", + "%03x %04x(%8s)[%d] %04x(%8s)[%d] %04x(%8s)[%d]\t", s->op, s->a, pr_type_name[op_type[0]], op_width[0], s->b, pr_type_name[op_type[1]], op_width[1],