mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 12:31:32 +00:00
r_draw.c: fix compiling with clang
This commit is contained in:
parent
58cf8293e3
commit
ae25209cd1
1 changed files with 2 additions and 1 deletions
|
@ -435,6 +435,7 @@ static void R_RainbowColormap(UINT8 *dest_colormap, UINT16 skincolor)
|
||||||
static void R_GenerateTranslationColormap(UINT8 *dest_colormap, INT32 translation, UINT16 color, INT32 starttranscolor)
|
static void R_GenerateTranslationColormap(UINT8 *dest_colormap, INT32 translation, UINT16 color, INT32 starttranscolor)
|
||||||
{
|
{
|
||||||
INT32 i, skinramplength;
|
INT32 i, skinramplength;
|
||||||
|
remaptable_t *tr;
|
||||||
|
|
||||||
// Handle a couple of simple special cases
|
// Handle a couple of simple special cases
|
||||||
if (translation < TC_DEFAULT)
|
if (translation < TC_DEFAULT)
|
||||||
|
@ -443,7 +444,7 @@ static void R_GenerateTranslationColormap(UINT8 *dest_colormap, INT32 translatio
|
||||||
{
|
{
|
||||||
case TC_ALLWHITE:
|
case TC_ALLWHITE:
|
||||||
case TC_DASHMODE:
|
case TC_DASHMODE:
|
||||||
remaptable_t *tr = R_GetBuiltInTranslation((SINT8)translation);
|
tr = R_GetBuiltInTranslation((SINT8)translation);
|
||||||
if (tr)
|
if (tr)
|
||||||
{
|
{
|
||||||
memcpy(dest_colormap, tr->remap, NUM_PALETTE_ENTRIES);
|
memcpy(dest_colormap, tr->remap, NUM_PALETTE_ENTRIES);
|
||||||
|
|
Loading…
Reference in a new issue