[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.
This commit is contained in:
Bill Currie 2022-02-12 01:58:38 +09:00
parent fc8cc0b703
commit 944a9253e9
1 changed files with 2 additions and 1 deletions

View File

@ -1132,8 +1132,9 @@ fmt_state_conversion (fmt_state_t *state)
state->fmt_count++; state->fmt_count++;
fmt_append_item (state); fmt_append_item (state);
break; break;
case 'u':
case 'x': case 'x':
// integer, hex notation // integer, unsigned or hex notation
(*state->fi)->type = conv; (*state->fi)->type = conv;
(*state->fi)->data.uinteger_var = P_UINT (pr, state->fmt_count); (*state->fi)->data.uinteger_var = P_UINT (pr, state->fmt_count);