mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Change when and specifically what colormap[] is applied to in R_Draw2sMultiPatchTranslucentColumn_8
This commit is contained in:
parent
fc90876a0e
commit
7681a15f59
1 changed files with 4 additions and 4 deletions
|
|
@ -261,7 +261,7 @@ void R_Draw2sMultiPatchTranslucentColumn_8(void)
|
||||||
val = source[frac>>FRACBITS];
|
val = source[frac>>FRACBITS];
|
||||||
|
|
||||||
if (val != TRANSPARENTPIXEL)
|
if (val != TRANSPARENTPIXEL)
|
||||||
*dest = colormap[*(transmap + (val<<8) + (*dest))];
|
*dest = *(transmap + (colormap[val]<<8) + (*dest));
|
||||||
|
|
||||||
dest += vid.width;
|
dest += vid.width;
|
||||||
|
|
||||||
|
|
@ -281,12 +281,12 @@ void R_Draw2sMultiPatchTranslucentColumn_8(void)
|
||||||
{
|
{
|
||||||
val = source[(frac>>FRACBITS) & heightmask];
|
val = source[(frac>>FRACBITS) & heightmask];
|
||||||
if (val != TRANSPARENTPIXEL)
|
if (val != TRANSPARENTPIXEL)
|
||||||
*dest = colormap[*(transmap + (val<<8) + (*dest))];
|
*dest = *(transmap + (colormap[val]<<8) + (*dest));
|
||||||
dest += vid.width;
|
dest += vid.width;
|
||||||
frac += fracstep;
|
frac += fracstep;
|
||||||
val = source[(frac>>FRACBITS) & heightmask];
|
val = source[(frac>>FRACBITS) & heightmask];
|
||||||
if (val != TRANSPARENTPIXEL)
|
if (val != TRANSPARENTPIXEL)
|
||||||
*dest = colormap[*(transmap + (val<<8) + (*dest))];
|
*dest = *(transmap + (colormap[val]<<8) + (*dest));
|
||||||
dest += vid.width;
|
dest += vid.width;
|
||||||
frac += fracstep;
|
frac += fracstep;
|
||||||
}
|
}
|
||||||
|
|
@ -294,7 +294,7 @@ void R_Draw2sMultiPatchTranslucentColumn_8(void)
|
||||||
{
|
{
|
||||||
val = source[(frac>>FRACBITS) & heightmask];
|
val = source[(frac>>FRACBITS) & heightmask];
|
||||||
if (val != TRANSPARENTPIXEL)
|
if (val != TRANSPARENTPIXEL)
|
||||||
*dest = colormap[*(transmap + (val<<8) + (*dest))];
|
*dest = *(transmap + (colormap[val]<<8) + (*dest));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue