diff --git a/stepmania/src/BitmapText.cpp b/stepmania/src/BitmapText.cpp index a5fb2a726e..10557a5bf2 100644 --- a/stepmania/src/BitmapText.cpp +++ b/stepmania/src/BitmapText.cpp @@ -353,18 +353,17 @@ void BitmapText::SetText( CString sText, CString sAlternateText, int iWrapWidthP sCurLine = ""; iCurLineWidth = 0; } + else if( iCurLineWidth + iWidthToAdd <= iWrapWidthPixels ) // will fit on current line + { + sCurLine += sToAdd; + iCurLineWidth += iWidthToAdd; + } else - if( iCurLineWidth + iWidthToAdd <= iWrapWidthPixels ) // will fit on current line - { - sCurLine += sToAdd; - iCurLineWidth += iWidthToAdd; - } - else - { - m_wTextLines.push_back( CStringToWstring(sCurLine) ); - sCurLine = sWord; - iCurLineWidth = iWidthWord; - } + { + m_wTextLines.push_back( CStringToWstring(sCurLine) ); + sCurLine = sWord; + iCurLineWidth = iWidthWord; + } } } m_wTextLines.push_back( CStringToWstring(sCurLine) );