diff options
author | git <BlueRaja.admin@gmail.com> | 2013-03-07 19:07:17 -0600 |
---|---|---|
committer | git <BlueRaja.admin@gmail.com> | 2013-03-07 19:07:17 -0600 |
commit | 9cbfc1cb331ac5ce38a91992183ba0b50e3b50dd (patch) | |
tree | fad402ef2c79e80790bae6aaea7204cfc739bd17 /includes/datas.php | |
parent | f394ba40a189669beafe824f80497401e01c2315 (diff) | |
download | pathery-9cbfc1cb331ac5ce38a91992183ba0b50e3b50dd.tar.xz |
Added challenge points to scores
Diffstat (limited to 'includes/datas.php')
-rw-r--r-- | includes/datas.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/datas.php b/includes/datas.php index c64edd6..c341ddf 100644 --- a/includes/datas.php +++ b/includes/datas.php @@ -807,6 +807,7 @@ function getScores($mapID, $pageNumber = 1, $pageDivide = 10) { timediff(solutions.dateModified, TIMESTAMP(CURDATE())) as diff, users.displayName as display, solutions.moves as moves, + solutions.challengePointsWorth as points, users.ID as ID, users.displayColor, users.wallColor, @@ -871,7 +872,8 @@ function getScores($mapID, $pageNumber = 1, $pageDivide = 10) { $medal = 'gold'; // if is blind map. - if ($isBlindMap AND $myBestMoves < $moves) $row['moves'] = '???'; + if ($isBlindMap AND $myBestMoves < $moves) + $row['moves'] = '???'; $output['users'][$i] = $row; $output['users'][$i]['secondsSinceScored'] = $secondsSinceScored; |