diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-11-29 15:00:11 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-11-29 15:00:11 -0800 |
commit | 1399d45c68e7d14fc1f3e8f2b5451669cce4ffa4 (patch) | |
tree | ab28080501f9dc8e4ffdc29742f45e2acf3fdcbf /js/mapspecs.js | |
parent | 23b7ddabd4c2c6286a9b3ef0791befbc6f4ef89f (diff) | |
download | pathery-1399d45c68e7d14fc1f3e8f2b5451669cce4ffa4.tar.xz |
Lots of fixes and changes.
nofollow on login links.
tutorial fix
changed how $accepted works
changed how $wallColor/Emblem works
fixed a bug when multiple players scored at the same momment.
Diffstat (limited to 'js/mapspecs.js')
-rw-r--r-- | js/mapspecs.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js index 87de7de..5299b60 100644 --- a/js/mapspecs.js +++ b/js/mapspecs.js @@ -302,7 +302,8 @@ function request_path_done() { //Mark off challenges
- if(isChallenge)
+ //TODO: Temporarly disabled because it breaks the tutorial;
+ if(isChallenge && 2 == 4)
{
for(var i = 0; i < JO.completedChallenges.length; i++)
{
@@ -509,8 +510,6 @@ function doanimate(x, y, p, c, mapid, pathNumber) { handle.pressed = true;
} else {
if (contains(mapdata[mapid].usedTiles, eid)) {
- console.log("executed on", eid, c);
- console.log("true:", contains(mapdata[mapid].usedTiles, eid));
handle.style.backgroundColor = '#dddddd';
setTimeout("document.getElementById('"+eid+"').style.backgroundColor = '#dddddd';", 865);
handle.pressed = true;
@@ -563,7 +562,6 @@ function doanimate(x, y, p, c, mapid, pathNumber) { //Switch for range result.
var disptext = ""
var improvedScore = (count[mapid] > mapjson[mapid].mybest && mapjson[mapid].mybest != "0");
- console.log(mapjson[mapid].mybest,mapjson[mapid].mybest == 0 )
switch (true) {
case (count[mapid] > mapjson[mapid].best):
disptext = "Beat "+mapjson[mapid].bestby+"'s record of "+mapjson[mapid].best+" with "+count[mapid]+"!";
|