pp>score for vanilla
This commit is contained in:
parent
05aa006eae
commit
f7d7bdcbfb
|
@ -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"]
|
||||
|
|
Reference in New Issue
Block a user