Skip to content

Commit 4c7e2c8

Browse files
deal with 11111 flags in the ett highscore load function as well
1 parent f31f334 commit 4c7e2c8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/HighScore.cpp

+12
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@ XNode* HighScore::CreateEttNode() const
810810
return m_Impl->CreateEttNode();
811811
}
812812

813+
// Used for importing from stats.xml -mina
813814
void HighScore::LoadFromNode( const XNode* pNode )
814815
{
815816
m_Impl->LoadFromNode( pNode );
@@ -835,9 +836,20 @@ void HighScore::LoadFromNode( const XNode* pNode )
835836
}
836837
}
837838

839+
// Used to load from etterna.xml -mina
838840
void HighScore::LoadFromEttNode(const XNode* pNode)
839841
{
840842
m_Impl->LoadFromEttNode(pNode);
843+
844+
if (m_Impl->fSSRNormPercent > 1000.f) {
845+
if (m_Impl->grade != Grade_Failed)
846+
m_Impl->fSSRNormPercent = RescoreToWifeJudgeDuringLoad(4);
847+
else
848+
m_Impl->fSSRNormPercent = m_Impl->fWifeScore;
849+
850+
m_Impl->vNoteRowVector.clear();
851+
m_Impl->vOffsetVector.clear();
852+
}
841853
}
842854

843855
string HighScore::GetDisplayName() const

0 commit comments

Comments
 (0)