From a25b6ca49f3b3c558b6b934b16fc31f0309f12df Mon Sep 17 00:00:00 2001 From: VelocitOni Date: Thu, 19 Oct 2023 12:47:34 -0400 Subject: [PATCH] Custom Cup monitor now shows up in Statistics Menu toaster asked me to paste this code in, she's busy w/ break-through-them-all --- src/k_menudraw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/k_menudraw.c b/src/k_menudraw.c index a7c9117c7..d7b085f39 100644 --- a/src/k_menudraw.c +++ b/src/k_menudraw.c @@ -2467,7 +2467,8 @@ fixed_t M_DrawCupWinData(INT32 rankx, INT32 ranky, cupheader_t *cup, UINT8 diffi if (statsmode) { - patch_t *monPat = W_CachePatchName(va("CUPMON%c%c", '0' + cup->monitor, 'C'), PU_CACHE); + const char monitorletter = (cup->monitor < 10) ? ('0' + cup->monitor) : ('A' + (cup->monitor - 10)); + patch_t *monPat = W_CachePatchName(va("CUPMON%c%c", monitorletter, 'C'), PU_CACHE); UINT16 moncolor = SKINCOLOR_NONE; switch (windata->best_placement)