mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-26 08:26:31 +00:00
color spb icon with who threw it
This commit is contained in:
parent
66bef945e8
commit
e2bc8a0d97
1 changed files with 13 additions and 1 deletions
14
src/k_kart.c
14
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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue