mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Respect mobj->color while enemies & bosses flash
This commit is contained in:
parent
d9395b0a73
commit
4e5c3566c9
2 changed files with 5 additions and 1 deletions
|
@ -481,9 +481,13 @@ static void R_GenerateTranslationColormap(UINT8 *dest_colormap, INT32 skinnum, U
|
|||
// White!
|
||||
if (skinnum == TC_BOSS)
|
||||
{
|
||||
UINT8 *originalColormap = R_GetTranslationColormap(TC_DEFAULT, (skincolornum_t)color, GTC_CACHE);
|
||||
for (i = 0; i < 16; i++)
|
||||
{
|
||||
dest_colormap[DEFAULT_STARTTRANSCOLOR + i] = originalColormap[DEFAULT_STARTTRANSCOLOR + i];
|
||||
dest_colormap[31-i] = i;
|
||||
}
|
||||
}
|
||||
else if (skinnum == TC_METALSONIC)
|
||||
{
|
||||
for (i = 0; i < 6; i++)
|
||||
|
|
|
@ -753,7 +753,7 @@ UINT8 *R_GetSpriteTranslation(vissprite_t *vis)
|
|||
else if (vis->mobj->type == MT_METALSONIC_BATTLE)
|
||||
return R_GetTranslationColormap(TC_METALSONIC, 0, GTC_CACHE);
|
||||
else
|
||||
return R_GetTranslationColormap(TC_BOSS, 0, GTC_CACHE);
|
||||
return R_GetTranslationColormap(TC_BOSS, vis->mobj->color, GTC_CACHE);
|
||||
}
|
||||
else if (vis->mobj->color)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue