From 944a9253e9de87ab6bace57f5189594e8ecb3e6f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 12 Feb 2022 01:58:38 +0900 Subject: [PATCH] [gamecode] Support %u format in PR_Sprintf Not sure why it was missed as it would have been useful even before unsigned was properly supported by qfcc. --- libs/gamecode/pr_strings.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gamecode/pr_strings.c b/libs/gamecode/pr_strings.c index b8364d89c..eb0fcc6ab 100644 --- a/libs/gamecode/pr_strings.c +++ b/libs/gamecode/pr_strings.c @@ -1132,8 +1132,9 @@ fmt_state_conversion (fmt_state_t *state) state->fmt_count++; fmt_append_item (state); break; + case 'u': case 'x': - // integer, hex notation + // integer, unsigned or hex notation (*state->fi)->type = conv; (*state->fi)->data.uinteger_var = P_UINT (pr, state->fmt_count);