save survival life seconds remaining in HighScore

show SurvivalLifeTime in Ranking
This commit is contained in:
Chris Danford
2005-05-08 22:03:41 +00:00
parent 504011ac3f
commit 1cc8d4a859
12 changed files with 66 additions and 45 deletions
+2 -1
View File
@@ -58,7 +58,7 @@ XNode* HighScore::CreateNode() const
if( hns != HNS_NONE ) // HACK: don't save meaningless "none" count
pHoldNoteScores->AppendChild( HoldNoteScoreToString(hns), iHoldNoteScores[hns] );
pNode->AppendChild( radarValues.CreateNode() );
pNode->AppendChild( "LifeRemainingSeconds", fLifeRemainingSeconds );
return pNode;
}
@@ -94,6 +94,7 @@ void HighScore::LoadFromNode( const XNode* pNode )
const XNode* pRadarValues = pNode->GetChild( "RadarValues" );
if( pRadarValues )
radarValues.LoadFromNode( pRadarValues );
pNode->GetChildValue( "LifeRemainingSeconds", fLifeRemainingSeconds );
/* Validate input. */
grade = clamp( grade, GRADE_TIER01, GRADE_FAILED );