This commit is contained in:
Steve Checkoway
2007-06-01 04:50:36 +00:00
parent 75fc300d14
commit 666d241a4f
3 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ Difficulty StringToDifficulty( const RString& sDC )
else if( s2 == "maniac" ) return Difficulty_Hard; else if( s2 == "maniac" ) return Difficulty_Hard;
else if( s2 == "heavy" ) return Difficulty_Hard; else if( s2 == "heavy" ) return Difficulty_Hard;
else if( s2 == "smaniac" ) return Difficulty_Challenge; else if( s2 == "smaniac" ) return Difficulty_Challenge;
else if( s2 == "challenge" )return Difficulty_Challenge; else if( s2 == "challenge" ) return Difficulty_Challenge;
else if( s2 == "expert" ) return Difficulty_Challenge; else if( s2 == "expert" ) return Difficulty_Challenge;
else if( s2 == "oni" ) return Difficulty_Challenge; else if( s2 == "oni" ) return Difficulty_Challenge;
else if( s2 == "edit" ) return Difficulty_Edit; else if( s2 == "edit" ) return Difficulty_Edit;
+6 -6
View File
@@ -312,16 +312,16 @@ void StepsID::LoadFromNode( const XNode* pNode )
RString sTemp; RString sTemp;
pNode->GetAttrValue("StepsType", sTemp); pNode->GetAttrValue( "StepsType", sTemp );
st = GameManager::StringToStepsType( sTemp ); st = GameManager::StringToStepsType( sTemp );
pNode->GetAttrValue("Difficulty", sTemp); pNode->GetAttrValue( "Difficulty", sTemp );
dc = StringToDifficulty( sTemp ); dc = StringToDifficulty( sTemp );
if( dc == Difficulty_Edit ) if( dc == Difficulty_Edit )
{ {
pNode->GetAttrValue("Description", sDescription); pNode->GetAttrValue( "Description", sDescription );
pNode->GetAttrValue("Hash", uHash); pNode->GetAttrValue( "Hash", uHash );
} }
else else
{ {
@@ -332,8 +332,8 @@ void StepsID::LoadFromNode( const XNode* pNode )
RString StepsID::ToString() const RString StepsID::ToString() const
{ {
RString s = GameManager::StepsTypeToString(st); RString s = GameManager::StepsTypeToString( st );
s += " " + DifficultyToString(dc); s += " " + DifficultyToString( dc );
if( dc == Difficulty_Edit ) if( dc == Difficulty_Edit )
{ {
s += " " + sDescription; s += " " + sDescription;
+4 -4
View File
@@ -50,17 +50,17 @@ void TrailID::LoadFromNode( const XNode* pNode )
RString sTemp; RString sTemp;
pNode->GetAttrValue("StepsType", sTemp); pNode->GetAttrValue( "StepsType", sTemp );
st = GameManager::StringToStepsType( sTemp ); st = GameManager::StringToStepsType( sTemp );
pNode->GetAttrValue("CourseDifficulty", sTemp); pNode->GetAttrValue( "CourseDifficulty", sTemp );
cd = StringToDifficulty( sTemp ); cd = StringToDifficulty( sTemp );
} }
RString TrailID::ToString() const RString TrailID::ToString() const
{ {
RString s = GameManager::StepsTypeToString(st); RString s = GameManager::StepsTypeToString( st );
s += " " + DifficultyToString(cd); s += " " + DifficultyToString( cd );
return s; return s;
} }