From 7d1ea2721d51aad05ffc1a01b510d86e9864f92a Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 7 Mar 2013 02:35:37 -0800 Subject: Click and drag for the mapeditor. --- js/mapspecs.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'js/mapspecs.js') diff --git a/js/mapspecs.js b/js/mapspecs.js index ecc5c9d..5cc482e 100644 --- a/js/mapspecs.js +++ b/js/mapspecs.js @@ -92,12 +92,6 @@ function grid_click(obj) { y = tmp[1]; x = tmp[2]; - - if(typeof(mapdata[mapid]) == 'Object' && mapdata[mapid].editMap == true) { - mapClick(obj); - return; - } - //The users solution - prepare it if it's not started if (solution[mapid] == undefined) { getmapdata(mapid); -- cgit v1.2.3 From 05b82c3bfa0593ae5234844796ea3dbea929833e Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 7 Mar 2013 02:36:38 -0800 Subject: Whoops. --- js/mapspecs.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'js/mapspecs.js') diff --git a/js/mapspecs.js b/js/mapspecs.js index 5cc482e..b8213e5 100644 --- a/js/mapspecs.js +++ b/js/mapspecs.js @@ -874,7 +874,10 @@ function mapAsHTML(map, targetWidth, mapEditor) { //var idHandle = map.ID+','+x+','+y; //oldy is used for Position too... for now - if (type == 'o' || mapEditor == true) { + if (mapEditor == true) { + mapgrid += "
"; + mapgrid += "
"; + } else if (type == 'o') { mapgrid += "
"; mapgrid += "
"; } else { -- cgit v1.2.3 From 047e6d4ed75c35633ff3f428528069662a00dbf8 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 7 Mar 2013 02:36:55 -0800 Subject: Speed Tweeks --- js/mapspecs.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'js/mapspecs.js') diff --git a/js/mapspecs.js b/js/mapspecs.js index b8213e5..6ab7286 100644 --- a/js/mapspecs.js +++ b/js/mapspecs.js @@ -585,14 +585,14 @@ function doanimate(x, y, p, c, mapid, pathNumber) { rs = 84; //How fast should we be going? selectbox = document.getElementById(mapid+',speed'); - selected = selectbox.options[selectbox.selectedIndex].value; - switch (selected) { + var selectedSpeed = selectbox.options[selectbox.selectedIndex].value; + switch (selectedSpeed) { case '1': - rs =160; + rs =180; break; case '2': - rs =84; + rs =94; break; case '3': @@ -631,7 +631,8 @@ function doanimate(x, y, p, c, mapid, pathNumber) { case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - rs = rs + 410; + rs = rs + 410; + if (selectedSpeed <= 2) rs = rs + 200; mapdata[mapid].pathColor[pathNumber] = targetColor(t); break; -- cgit v1.2.3