From 9a803f94eda8ef8463b099df98f5d30aa506ec46 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 22 Jan 2007 21:56:56 +0000 Subject: [PATCH] don't load floats as strings --- stepmania/src/MeterDisplay.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stepmania/src/MeterDisplay.cpp b/stepmania/src/MeterDisplay.cpp index b50dbc6c5d..afcbb0bb4b 100644 --- a/stepmania/src/MeterDisplay.cpp +++ b/stepmania/src/MeterDisplay.cpp @@ -33,11 +33,9 @@ void MeterDisplay::LoadFromNode( const XNode* pNode ) { LOG->Trace( "MeterDisplay::LoadFromNode(%s,node)", ActorUtil::GetWhere(pNode).c_str() ); - RString sExpr; - if( !pNode->GetAttrValue( "StreamWidth", sExpr ) ) + if( !pNode->GetAttrValue("StreamWidth", m_fStreamWidth) ) RageException::Throw( "%s: MeterDisplay: missing the \"StreamWidth\" attribute", ActorUtil::GetWhere(pNode).c_str() ); - m_fStreamWidth=StringToFloat(sExpr); { RString sStreamPath; if( !ActorUtil::GetAttrPath(pNode, "StreamPath", sStreamPath) )