mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Legacy GL: models support TC_BLINK
This commit is contained in:
parent
fa5e8a5537
commit
30b3199e28
1 changed files with 8 additions and 0 deletions
|
|
@ -830,6 +830,9 @@ static void HWR_CreateBlendedTexture(patch_t *gpatch, patch_t *blendgpatch, GLMi
|
||||||
if (translen > 0)
|
if (translen > 0)
|
||||||
colorbrightnesses[translen] = colorbrightnesses[translen-1];
|
colorbrightnesses[translen] = colorbrightnesses[translen-1];
|
||||||
|
|
||||||
|
if (skinnum == TC_BLINK)
|
||||||
|
blendcolor = V_GetColor(skincolors[color].ramp[3]);
|
||||||
|
|
||||||
while (size--)
|
while (size--)
|
||||||
{
|
{
|
||||||
if (skinnum == TC_HITLAG)
|
if (skinnum == TC_HITLAG)
|
||||||
|
|
@ -860,6 +863,11 @@ static void HWR_CreateBlendedTexture(patch_t *gpatch, patch_t *blendgpatch, GLMi
|
||||||
cur->s.red = cur->s.green = cur->s.blue = 255;
|
cur->s.red = cur->s.green = cur->s.blue = 255;
|
||||||
cur->s.alpha = image->s.alpha;
|
cur->s.alpha = image->s.alpha;
|
||||||
}
|
}
|
||||||
|
else if (skinnum == TC_BLINK)
|
||||||
|
{
|
||||||
|
*cur = blendcolor;
|
||||||
|
cur->s.alpha = image->s.alpha;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Everything below requires a blend image
|
// Everything below requires a blend image
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue