From b47ee7b402344379c5688d7af7632d2421bbff2b Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 24 Oct 2025 15:39:30 +0200 Subject: [PATCH] oop didnt mean to move this --- src/v_video.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/v_video.c b/src/v_video.c index dba1e34d9..6d5eb0fa7 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -1939,6 +1939,7 @@ UINT8 *V_GetStringColormap(INT32 colorflags) void V_DrawCharacter(INT32 x, INT32 y, INT32 c, boolean lowercaseallowed) { INT32 w, flags; + const UINT8 *colormap = V_GetStringColormap(c); flags = c & ~(V_CHARCOLORMASK | V_PARAMMASK); c &= 0x7f; @@ -1954,8 +1955,6 @@ void V_DrawCharacter(INT32 x, INT32 y, INT32 c, boolean lowercaseallowed) if (x + w > vid.width) return; - const UINT8 *colormap = V_GetStringColormap(c); - if (colormap != NULL) V_DrawMappedPatch(x, y, flags, hu_font[c], colormap); else