mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Rename variable cs -> ColorScale
This commit is contained in:
parent
3708abe8e0
commit
1690a9703d
|
@ -714,16 +714,16 @@ void CRenderTools::RenderTee(CAnimState *pAnim, CTeeRenderInfo *pInfo, int Emote
|
|||
Graphics()->QuadsSetRotation(pFoot->m_Angle * pi * 2);
|
||||
|
||||
bool Indicate = !pInfo->m_GotAirJump && g_Config.m_ClAirjumpindicator;
|
||||
float cs = 1.0f; // color scale
|
||||
float ColorScale = 1.0f;
|
||||
|
||||
if(!OutLine)
|
||||
{
|
||||
++QuadOffset;
|
||||
if(Indicate)
|
||||
cs = 0.5f;
|
||||
ColorScale = 0.5f;
|
||||
}
|
||||
|
||||
Graphics()->SetColor(pInfo->m_ColorFeet.r * cs, pInfo->m_ColorFeet.g * cs, pInfo->m_ColorFeet.b * cs, Alpha);
|
||||
Graphics()->SetColor(pInfo->m_ColorFeet.r * ColorScale, pInfo->m_ColorFeet.g * ColorScale, pInfo->m_ColorFeet.b * ColorScale, Alpha);
|
||||
|
||||
Graphics()->TextureSet(OutLine == 1 ? pSkinTextures->m_FeetOutline : pSkinTextures->m_Feet);
|
||||
Graphics()->RenderQuadContainerAsSprite(m_TeeQuadContainerIndex, QuadOffset, Position.x + pFoot->m_X * AnimScale, Position.y + pFoot->m_Y * AnimScale, w / 64.f, h / 32.f);
|
||||
|
|
Loading…
Reference in a new issue