From d2d6e67f48c1a246f107dc4db6d5a39b63523e84 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 23 Sep 2018 16:39:07 +0100 Subject: [PATCH] Forgot I did this optimisation! Updated for the new colours. --- src/v_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v_video.c b/src/v_video.c index f8842cda..46d34acc 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -1291,7 +1291,7 @@ UINT8 *V_GetStringColormap(INT32 colorflags) } #else // optimised colorflags = ((colorflags & V_CHARCOLORMASK) >> V_CHARCOLORSHIFT); - if (!colorflags || colorflags > 8) // INT32 is signed, but V_CHARCOLORMASK is a very restrictive mask. + if (!colorflags || colorflags > 15) // INT32 is signed, but V_CHARCOLORMASK is a very restrictive mask. return NULL; return (purplemap+((colorflags-1)<<8)); #endif