Skip to content

Commit

Permalink
deal with 11111 flags in the ett highscore load function as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Oct 3, 2017
1 parent f31f334 commit 4c7e2c8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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
Expand Down

0 comments on commit 4c7e2c8

Please sign in to comment.