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
+2 -2
View File
@@ -43,11 +43,11 @@ Difficulty StringToDifficulty( const RString& sDC )
else if( s2 == "maniac" ) return Difficulty_Hard;
else if( s2 == "heavy" ) return Difficulty_Hard;
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 == "oni" ) return Difficulty_Challenge;
else if( s2 == "edit" ) return Difficulty_Edit;
else return Difficulty_Invalid;
else return Difficulty_Invalid;
}
+6 -6
View File
@@ -312,16 +312,16 @@ void StepsID::LoadFromNode( const XNode* pNode )
RString sTemp;
pNode->GetAttrValue("StepsType", sTemp);
pNode->GetAttrValue( "StepsType", sTemp );
st = GameManager::StringToStepsType( sTemp );
pNode->GetAttrValue("Difficulty", sTemp);
pNode->GetAttrValue( "Difficulty", sTemp );
dc = StringToDifficulty( sTemp );
if( dc == Difficulty_Edit )
{
pNode->GetAttrValue("Description", sDescription);
pNode->GetAttrValue("Hash", uHash);
pNode->GetAttrValue( "Description", sDescription );
pNode->GetAttrValue( "Hash", uHash );
}
else
{
@@ -332,8 +332,8 @@ void StepsID::LoadFromNode( const XNode* pNode )
RString StepsID::ToString() const
{
RString s = GameManager::StepsTypeToString(st);
s += " " + DifficultyToString(dc);
RString s = GameManager::StepsTypeToString( st );
s += " " + DifficultyToString( dc );
if( dc == Difficulty_Edit )
{
s += " " + sDescription;
+4 -4
View File
@@ -50,17 +50,17 @@ void TrailID::LoadFromNode( const XNode* pNode )
RString sTemp;
pNode->GetAttrValue("StepsType", sTemp);
pNode->GetAttrValue( "StepsType", sTemp );
st = GameManager::StringToStepsType( sTemp );
pNode->GetAttrValue("CourseDifficulty", sTemp);
pNode->GetAttrValue( "CourseDifficulty", sTemp );
cd = StringToDifficulty( sTemp );
}
RString TrailID::ToString() const
{
RString s = GameManager::StepsTypeToString(st);
s += " " + DifficultyToString(cd);
RString s = GameManager::StepsTypeToString( st );
s += " " + DifficultyToString( cd );
return s;
}