fix LastScores loading

This commit is contained in:
Chris Danford
2004-04-22 22:56:38 +00:00
parent 0cc49c66bb
commit 59126d1b79
5 changed files with 27 additions and 20 deletions
+2
View File
@@ -55,6 +55,7 @@ XNode* HighScore::CreateNode() const
pNode->AppendChild( "SurviveSeconds", fSurviveSeconds );
pNode->AppendChild( "Modifiers", sModifiers );
pNode->AppendChild( "Time", (int)time );
pNode->AppendChild( "PlayerGuid", sPlayerGuid );
pNode->AppendChild( "MachineGuid", sMachineGuid );
return pNode;
@@ -74,6 +75,7 @@ void HighScore::LoadFromNode( const XNode* pNode )
else if( (*child)->name == "SurviveSeconds" ) (*child)->GetValue( fSurviveSeconds );
else if( (*child)->name == "Modifiers" ) (*child)->GetValue( sModifiers );
else if( (*child)->name == "Time" ) (*child)->GetValue( (int&)time );
else if( (*child)->name == "PlayerGuid" ) (*child)->GetValue( sPlayerGuid );
else if( (*child)->name == "MachineGuid" ) (*child)->GetValue( sMachineGuid );
}