Bring speeds out to two decimal places, so we get .75.
This commit is contained in:
@@ -56,9 +56,16 @@ CString PlayerOptions::GetString()
|
|||||||
|
|
||||||
if( m_fArrowScrollSpeed != 1 )
|
if( m_fArrowScrollSpeed != 1 )
|
||||||
{
|
{
|
||||||
CString s = ssprintf( "%2.1f", m_fArrowScrollSpeed );
|
/* -> 1.00 */
|
||||||
if( s[s.GetLength()-1] == '0' )
|
CString s = ssprintf( "%2.2f", m_fArrowScrollSpeed );
|
||||||
|
if( s[s.GetLength()-1] == '0' ) {
|
||||||
|
/* -> 1.0 */
|
||||||
|
s.Delete(s.GetLength()-1, 1); // delete last char
|
||||||
|
if( s[s.GetLength()-1] == '0' ) {
|
||||||
|
/* -> 1 */
|
||||||
s.Delete(s.GetLength()-2, 2); // delete last 2 chars
|
s.Delete(s.GetLength()-2, 2); // delete last 2 chars
|
||||||
|
}
|
||||||
|
}
|
||||||
sReturn += s + "X, ";
|
sReturn += s + "X, ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user