diff --git a/src/game/client/render.cpp b/src/game/client/render.cpp index c0b97fda4..72910a300 100644 --- a/src/game/client/render.cpp +++ b/src/game/client/render.cpp @@ -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);