summaryrefslogtreecommitdiffstats
path: root/do.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2012-09-30 18:04:57 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2012-09-30 18:04:57 -0500
commit60c8232de409d0cb6de37ef87a489049f060003d (patch)
tree46fdb1be91eb3a4db354d064363a46fbf27fdb8b /do.php
parent2ce5e3800ff764870c93038d0c5ed35181225a52 (diff)
downloadpathery-60c8232de409d0cb6de37ef87a489049f060003d.tar.xz
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 :)
Diffstat (limited to 'do.php')
-rw-r--r--do.php5
1 files changed, 2 insertions, 3 deletions
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;
}