From ac481ed18541958ba6b89214e4ef7a2f86d8addf Mon Sep 17 00:00:00 2001 From: Sryder13 Date: Mon, 5 Feb 2018 02:53:55 +0000 Subject: [PATCH] Pure white and pure black shouldn't change on star colormap --- src/k_kart.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/k_kart.c b/src/k_kart.c index 921aaebd..45d3a5d7 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -197,6 +197,11 @@ void K_StarmanColormap(UINT8 *dest_colormap, UINT8 skincolor) // next, for every colour in the palette, choose the transcolor that has the closest brightness for (i = 0; i < NUM_PALETTE_ENTRIES; i++) { + if (i == 0 || i == 31 || i == 120) // pure black and pure white don't change + { + dest_colormap[i] = (UINT8)i; + continue; + } color = V_GetColor(i); brightness = (UINT8)(((UINT16)color.s.red + (UINT16)color.s.green + (UINT16)color.s.blue)/3); brightdif = 256;