Skip to content

Commit

Permalink
Add checks for certain enums that are irrelevant to the current system.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheROPFather committed Apr 22, 2018
1 parent 198a676 commit 7835f51
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/PlayerStageStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,22 @@ vector<float> PlayerStageStats::CalcSSR(float ssrpercent ) const {
void PlayerStageStats::GenerateValidationKeys(HighScore& hs) const {
string key = "";

// just designed to catch shameless stats xml tampering by people who aren't experienced enough to look this up -mina
FOREACH_ENUM(TapNoteScore, tns)
FOREACH_ENUM(TapNoteScore, tns) {

if(tns == TNS_AvoidMine || tns == TNS_CheckpointHit || tns == TNS_CheckpointMiss || tns == TNS_None) {
continue;
}

key.append(to_string(hs.GetTapNoteScore(tns)));
FOREACH_ENUM(HoldNoteScore, hns)
}

FOREACH_ENUM(HoldNoteScore, hns) {
if (hns == HNS_None) {
continue;
}

key.append(to_string(hs.GetHoldNoteScore(hns)));
}

key.append(hs.GetScoreKey());
key.append(hs.GetChartKey());
Expand Down

0 comments on commit 7835f51

Please sign in to comment.