Skip to content

Commit

Permalink
Invert if statement to remove negation
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWillden committed Oct 16, 2020
1 parent 09f9ec5 commit 8321f73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cl_dll/ff/vgui/ff_quantityitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1489,13 +1489,13 @@ namespace vgui
{
wchar_t wszMaxAmountString[ 10 ];

if(!m_bShowAmountMax)
if(m_bShowAmountMax)
{
_snwprintf( wszMaxAmountString, 9, L"100%%");
_snwprintf( wszMaxAmountString, 9, L"%s/%s", m_wszAmountMax, m_wszAmountMax );
}
else
{
_snwprintf( wszMaxAmountString, 9, L"%s/%s", m_wszAmountMax, m_wszAmountMax );
_snwprintf( wszMaxAmountString, 9, L"100%%");
}

CalculateTextPositionOffset(m_iAmountMaxAnchorPositionX, m_iAmountMaxAnchorPositionY, m_iAmountAnchorPosition);
Expand Down

0 comments on commit 8321f73

Please sign in to comment.