From e2bc8a0d9733493d0f70bd372e127a839d36e617 Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Sun, 27 Oct 2019 21:25:16 -0400 Subject: [PATCH] color spb icon with who threw it --- src/k_kart.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index 2587813c5..dedc6f79a 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -9680,7 +9680,19 @@ static void K_drawKartMinimap(void) { next = mobj->itnext; if (mobj->type == MT_SPB) - K_drawKartMinimapIcon(mobj->x, mobj->y, x, y, splitflags, kp_spbminimap, NULL, AutomapPic); + { + UINT8 *colormap = NULL; + + if (mobj->target && !P_MobjWasRemoved(mobj->target)) + { + if (mobj->player && mobj->player->skincolor) + colormap = R_GetTranslationColormap(TC_RAINBOW, mobj->player->skincolor, GTC_CACHE); + else if (mobj->color) + colormap = R_GetTranslationColormap(TC_RAINBOW, mobj->color, GTC_CACHE); + } + + K_drawKartMinimapIcon(mobj->x, mobj->y, x, y, splitflags, kp_spbminimap, colormap, AutomapPic); + } } // draw our local players here, opaque.