From 9cbfc1cb331ac5ce38a91992183ba0b50e3b50dd Mon Sep 17 00:00:00 2001 From: git Date: Thu, 7 Mar 2013 19:07:17 -0600 Subject: Added challenge points to scores --- includes/datas.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') 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; -- cgit v1.2.3