mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +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]);
|
||||
|
||||
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
|
||||
nextcolor = V_GetColor(31);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue