From 60c8232de409d0cb6de37ef87a489049f060003d Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Sun, 30 Sep 2012 18:04:57 -0500 Subject: Did some more work on the challenges, to have them added to the DB when the user actually completes them. No idea if it actually works yet :) --- do.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'do.php') diff --git a/do.php b/do.php index 4e0b88d..0cb1169 100644 --- a/do.php +++ b/do.php @@ -215,9 +215,8 @@ if ($_GET['r'] == 'getpath') { // --------- USER LOGGED IN //Challenge/Tutorial? - if ($mapID <= 10 AND $_GET['isChallenge'] = 'true') { - //echo "running function".$_GET['challengeID']; - applyChallengeAchievements($userID, $_GET['challengeID'], $mapID, $solution, $moves); + if ($_GET['isChallenge'] == 'true') { + checkForCompletedChallenges($userID, $mapID, $solution, $moves, $json['path']); return; } -- cgit v1.2.3