mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Tiny optimization
This commit is contained in:
parent
ee60e6d76c
commit
e1d73d0e35
1 changed files with 2 additions and 1 deletions
|
|
@ -798,7 +798,8 @@ static void HWR_CreateBlendedTexture(GLPatch_t *gpatch, GLPatch_t *blendgpatch,
|
||||||
|
|
||||||
blendcolor = V_GetColor(colortranslations[color][firsti]);
|
blendcolor = V_GetColor(colortranslations[color][firsti]);
|
||||||
|
|
||||||
if (mul > 0) // If it's 0, then we only need the first color.
|
if (mul > 0 // If it's 0, then we only need the first color.
|
||||||
|
&& colortranslations[color][firsti] != colortranslations[color][secondi]) // Some colors have duplicate colors in a row, so let's just save the process
|
||||||
{
|
{
|
||||||
if (secondi == 16) // blend to black
|
if (secondi == 16) // blend to black
|
||||||
nextcolor = V_GetColor(31);
|
nextcolor = V_GetColor(31);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue