Skip to content

Commit

Permalink
reverting a small change I made, gonna make it work differently when …
Browse files Browse the repository at this point in the history
…I've got the rest in.
  • Loading branch information
AdamWillden committed Nov 1, 2020
1 parent 467ba91 commit dbb0215
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions cl_dll/ff/vgui/ff_quantitybar.cpp
Expand Up @@ -665,6 +665,7 @@ void FFQuantityBar::CalculateTextAlignmentOffset(int &outX, int &outY, int &iWid
{
vgui::surface()->GetTextSize(hfFont, wszString, iWide, iTall);

outY = (m_iBarHeight - iTall) / 2;
switch(iAlignH)
{
case ALIGN_CENTER:
Expand All @@ -677,17 +678,4 @@ void FFQuantityBar::CalculateTextAlignmentOffset(int &outX, int &outY, int &iWid
default:
outX = 0;
}

switch(iAlignV)
{
case ALIGN_MIDDLE:
outY = - iTall/2;
break;
case ALIGN_BOTTOM:
outY = - iTall;
break;
case ALIGN_TOP:
default:
outY = 0;
}
}

0 comments on commit dbb0215

Please sign in to comment.