Skip to content

Commit

Permalink
FFQuantityItem: Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWillden committed Oct 19, 2020
1 parent 289f4bd commit 302a5f6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cl_dll/ff/vgui/ff_quantityitem.cpp
Expand Up @@ -980,15 +980,9 @@ namespace vgui
SetBarColorMode(iColorMode);
}

bool bValidColor = false;
Color color = Color(iRed, iGreen, iBlue, iAlpha);
if(iRed != -1 && iGreen != -1 && iBlue != -1 && iAlpha != -1)
{
bValidColor = true;
}

if(m_clrBarCustomColor != color && bValidColor)
{
Color color = Color(iRed, iGreen, iBlue, iAlpha);
SetBarColor(color);
}
}
Expand Down

0 comments on commit 302a5f6

Please sign in to comment.