Make PresentScore() only consider replay hash

This commit is contained in:
smoogipoo 2021-06-15 11:14:35 +09:00
parent f3ca134e1e
commit f6c6eea6dc
1 changed files with 2 additions and 3 deletions

View File

@ -426,9 +426,8 @@ public void PresentScore(ScoreInfo score, ScorePresentType presentType = ScorePr
{
// The given ScoreInfo may have missing properties if it was retrieved from online data. Re-retrieve it from the database
// to ensure all the required data for presenting a replay are present.
var databasedScoreInfo = score.OnlineScoreID != null
? ScoreManager.Query(s => s.OnlineScoreID == score.OnlineScoreID)
: ScoreManager.Query(s => s.Hash == score.Hash);
// Todo: This should use the OnlineScoreID if available, however lazer scores are imported without an OnlineScoreID for the time being (see Player.ImportScore()).
var databasedScoreInfo = ScoreManager.Query(s => s.Hash == score.Hash);
if (databasedScoreInfo == null)
{