mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Fixing the fuckup I made when creating the new palette.
This commit is contained in:
parent
bfaf60ceef
commit
73ea33d3a1
1 changed files with 5 additions and 5 deletions
10
src/r_draw.c
10
src/r_draw.c
|
@ -420,11 +420,11 @@ static void R_GenerateTranslationColormap(UINT8 *dest_colormap, INT32 skinnum, U
|
|||
if (i <= 11)
|
||||
dest_colormap[starttranscolor + i] = (UINT8)(skinbasecolors[color - 1] + (i >> 1));
|
||||
else if (i == 12)
|
||||
dest_colormap[starttranscolor + i] = 0x2c; // Darkest 4
|
||||
else if (i == 13)
|
||||
dest_colormap[starttranscolor + i] = 0xfe; // Darkest 3
|
||||
dest_colormap[starttranscolor + i] = 0x2c;
|
||||
else if (i <= 14)
|
||||
dest_colormap[starttranscolor + i] = 0x2d;
|
||||
else
|
||||
dest_colormap[starttranscolor + i] = 0x2d + i - 14; // Darkest 2 and 1
|
||||
dest_colormap[starttranscolor + i] = 0x48;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -530,7 +530,7 @@ static void R_GenerateTranslationColormap(UINT8 *dest_colormap, INT32 skinnum, U
|
|||
for (i = 0; i < SKIN_RAMP_LENGTH; i++)
|
||||
{
|
||||
if (i == 15)
|
||||
dest_colormap[starttranscolor + i] = 0x1F; //Darkest 1
|
||||
dest_colormap[starttranscolor + i] = 0xfe; //Darkest 1
|
||||
else if (i == 14)
|
||||
dest_colormap[starttranscolor + i] = 0xfd; //Darkest 2
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue