From 16a203c643b51f8fa3e6dadeceb706c6763c5f0c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 21 Jan 2022 10:12:50 +0900 Subject: [PATCH] [gamecode] Partially implement conversion code debug The code is simply printed in octal for now, but it's better than breaking the rest of the format string. --- libs/gamecode/pr_debug.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/gamecode/pr_debug.c b/libs/gamecode/pr_debug.c index 794005174..0a3d00e8b 100644 --- a/libs/gamecode/pr_debug.c +++ b/libs/gamecode/pr_debug.c @@ -1683,6 +1683,9 @@ PR_PrintStatement (progs_t *pr, dstatement_t *s, int contents) str = dsprintf (res->dva, "%04x", addr + (short) opval); break; + case 'C': + str = dsprintf (res->dva, "%03o", opval); + break; case 'E': { edict_t *ed = 0;