diff --git a/src/HighScore.cpp b/src/HighScore.cpp index 18654ce0f1..6499b76607 100644 --- a/src/HighScore.cpp +++ b/src/HighScore.cpp @@ -511,11 +511,14 @@ void HighScoreImpl::LoadFromNode(const XNode *pNode) int playedcmod = StringToInt(cmod.substr(1, cmod.size())); float estrate = static_cast(basecmod) / static_cast(playedcmod); int herp = lround(estrate * 10); - estrate = herp / 10.f; + estrate = static_cast(herp) / 10.f; fMusicRate = estrate; } } + if (ScoreKey == "") + ScoreKey = "S" + BinaryToHex(CryptManager::GetSHA1ForString(dateTime.GetString())); + grade = clamp( grade, Grade_Tier01, Grade_Failed ); }