From 4c7e2c871e55a2f5bfc377212e6e69368fb93a28 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 3 Oct 2017 13:55:09 -0400 Subject: [PATCH] deal with 11111 flags in the ett highscore load function as well --- src/HighScore.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/HighScore.cpp b/src/HighScore.cpp index 2c95718ce3..5c1e5a35fd 100644 --- a/src/HighScore.cpp +++ b/src/HighScore.cpp @@ -810,6 +810,7 @@ XNode* HighScore::CreateEttNode() const return m_Impl->CreateEttNode(); } +// Used for importing from stats.xml -mina void HighScore::LoadFromNode( const XNode* pNode ) { m_Impl->LoadFromNode( pNode ); @@ -835,9 +836,20 @@ void HighScore::LoadFromNode( const XNode* pNode ) } } +// Used to load from etterna.xml -mina void HighScore::LoadFromEttNode(const XNode* pNode) { m_Impl->LoadFromEttNode(pNode); + + if (m_Impl->fSSRNormPercent > 1000.f) { + if (m_Impl->grade != Grade_Failed) + m_Impl->fSSRNormPercent = RescoreToWifeJudgeDuringLoad(4); + else + m_Impl->fSSRNormPercent = m_Impl->fWifeScore; + + m_Impl->vNoteRowVector.clear(); + m_Impl->vOffsetVector.clear(); + } } string HighScore::GetDisplayName() const