Move RadarValues::WriteSimpleValues, WriteComplexValues into ThemeMetric objects for maintainability.

This commit is contained in:
Chris Danford
2007-02-26 06:04:52 +00:00
parent aa34a3082d
commit 5637d0f7f7
5 changed files with 12 additions and 5 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ HighScoreImpl::HighScoreImpl()
XNode *HighScoreImpl::CreateNode() const
{
XNode *pNode = new XNode( "HighScore" );
const bool bWriteSimpleValues = THEME->GetMetricB( "RadarValues", "WriteSimpleValues" );
const bool bWriteComplexValues = THEME->GetMetricB( "RadarValues", "WriteComplexValues" );
const bool bWriteSimpleValues = RadarValues::WRITE_SIMPLE_VALIES;
const bool bWriteComplexValues = RadarValues::WRITE_COMPLEX_VALIES;
// TRICKY: Don't write "name to fill in" markers.
pNode->AppendChild( "Name", IsRankingToFillIn(sName) ? RString("") : sName );