From 4b26a19205a9818dc59c6f455403fc130f5a81c2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 2 Oct 2006 21:19:00 +0000 Subject: [PATCH] cleanup --- stepmania/src/Actor.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 91a2060b4e..960da261c4 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -263,11 +263,7 @@ void Actor::LoadFromNode( const RString& sDir, const XNode* pNode ) // Load Name, if any. const RString &sKeyName = pAttr->first; const RString &sValue = pAttr->second; - if( sKeyName == "Name" ) - { - m_sName = sValue; - } - + if( sKeyName == "Name" ) SetName( sValue ); else if( sKeyName == "BaseRotationX" ) SetBaseRotationX( StringToFloat(sValue) ); else if( sKeyName == "BaseRotationY" ) SetBaseRotationY( StringToFloat(sValue) ); else if( sKeyName == "BaseRotationZ" ) SetBaseRotationZ( StringToFloat(sValue) );