From f7d7bdcbfbe13067c066a78565697f890faa3096 Mon Sep 17 00:00:00 2001 From: Josh Smith Date: Fri, 11 Jan 2019 06:15:08 -0500 Subject: [PATCH] pp>score for vanilla --- objects/score.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/objects/score.pyx b/objects/score.pyx index 83f30aa..429745d 100644 --- a/objects/score.pyx +++ b/objects/score.pyx @@ -223,7 +223,7 @@ class score: # No duplicates found. # Get right "completed" value - personalBest = glob.db.fetch("SELECT id, score FROM scores WHERE userid = %s AND beatmap_md5 = %s AND play_mode = %s AND completed = 3 LIMIT 1", [userID, self.fileMd5, self.gameMode]) + personalBest = glob.db.fetch("SELECT id, pp, score FROM scores WHERE userid = %s AND beatmap_md5 = %s AND play_mode = %s AND completed = 3 LIMIT 1", [userID, self.fileMd5, self.gameMode]) if personalBest is None: # This is our first score on this map, so it's our best score self.completed = 3 @@ -231,7 +231,7 @@ class score: self.oldPersonalBest = 0 else: # Compare personal best's score with current score - if self.score > personalBest["score"]: + if self.pp > personalBest["pp"]: # New best score self.completed = 3 self.rankedScoreIncrease = self.score-personalBest["score"]