diff options
-rw-r--r-- | do.php | 8 | ||||
-rw-r--r-- | js/mapspecs.js | 1 |
2 files changed, 8 insertions, 1 deletions
@@ -244,7 +244,13 @@ if ($_GET['r'] == 'getpath') { $_SESSION['preCompletedTutorial'] = true;
$_SESSION['preCompletedTutorialNotified'] = false;
}
- if ($accepted == false) die(json_encode($json));
+ if ($accepted == false) {
+ if ($debug == true) {
+ echo json_encode($json);
+ }
+ exit;
+ }
+ //if ($accepted == false) die(json_encode($json));
//TODO: Where's $paths coming from?
getCompletedChallenges($userID, $mapID, $solution, $moves, $paths);
die(json_encode($json));
diff --git a/js/mapspecs.js b/js/mapspecs.js index d8b4ed3..4658aa3 100644 --- a/js/mapspecs.js +++ b/js/mapspecs.js @@ -147,6 +147,7 @@ function grid_click(obj) { childdiv.setAttribute("class", "child w");
if (wallColor == false) setWallStyle(userObj);
+ if (wallColor == false) wallColor = '#666';
obj.style.backgroundColor = wallColor;
if (wallEmblem) {
|