diff --git a/Docs/Changelog_sm-ssc.txt b/Docs/Changelog_sm-ssc.txt index df9f984ddc..ed3d469d20 100644 --- a/Docs/Changelog_sm-ssc.txt +++ b/Docs/Changelog_sm-ssc.txt @@ -9,6 +9,19 @@ Not all changes are documented, for various reasons. supported but exist anyways.) _____________________________________________________________________________ +20100619 +-------- +* [HighScore] add GetGrade() Lua binding. + +20100618 +-------- +* Allow RShift+Print Screen to take uncompressed screenshots. + +20100614 +-------- +* Attempt to fix screenshot numbering bug. Seems to work, if testing is + any indication. + 20100612 -------- * sm4svn r28359-r28364. [Chris Danford] diff --git a/src/HighScore.cpp b/src/HighScore.cpp index 9cf3721307..4d1e170bd8 100644 --- a/src/HighScore.cpp +++ b/src/HighScore.cpp @@ -91,7 +91,7 @@ XNode *HighScoreImpl::CreateNode() const pNode->AppendChild( "Grade", GradeToString(grade) ); pNode->AppendChild( "Score", iScore ); pNode->AppendChild( "PercentDP", fPercentDP ); - pNode->AppendChild( "SurviveSeconds", fSurviveSeconds ); + pNode->AppendChild( "SurviveSeconds", fSurviveSeconds ); pNode->AppendChild( "Modifiers", sModifiers ); pNode->AppendChild( "DateTime", dateTime.GetString() ); pNode->AppendChild( "PlayerGuid", sPlayerGuid ); @@ -143,7 +143,7 @@ void HighScoreImpl::LoadFromNode( const XNode *pNode ) pNode->GetChildValue( "LifeRemainingSeconds", fLifeRemainingSeconds ); pNode->GetChildValue( "Disqualified", bDisqualified); - /* Validate input. */ + // Validate input. grade = clamp( grade, Grade_Tier01, Grade_Failed ); } @@ -351,7 +351,7 @@ void HighScoreList::LoadFromNode( const XNode* pHighScoreList ) { vHighScores.resize( vHighScores.size()+1 ); vHighScores.back().LoadFromNode( p ); - + // ignore all high scores that are 0 if( vHighScores.back().GetScore() == 0 ) vHighScores.pop_back(); @@ -436,6 +436,7 @@ public: rv.PushSelf(L); return 1; } + DEFINE_METHOD( GetGrade, GetGrade() ) LunaHighScore() { @@ -450,6 +451,7 @@ public: ADD_METHOD( GetTapNoteScore ); ADD_METHOD( GetHoldNoteScore ); ADD_METHOD( GetRadarValues ); + ADD_METHOD( GetGrade ); } };