summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/mapspecs.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js
index adbf5d8..3aa123f 100644
--- a/js/mapspecs.js
+++ b/js/mapspecs.js
@@ -590,8 +590,7 @@ function doanimate(x, y, p, c, mapid, pathNumber) {
selected = selectbox.options[selectbox.selectedIndex].value;
switch (selected) {
case '1':
- rs =120;
- rs =0;
+ rs =160;
break;
case '2':
@@ -605,6 +604,10 @@ function doanimate(x, y, p, c, mapid, pathNumber) {
case '4':
rs =22;
break;
+
+ case '5':
+ rs =0;
+ break;
}
@@ -674,12 +677,11 @@ function doanimate(x, y, p, c, mapid, pathNumber) {
// || mapdata[mapid].moveCount[0] < mapdata[mapid].moveCount[pathNumber] - 2)
// rs = rs + 100;
- if (count[mapid] % 2 == 1 && rs == 0)
+ if (count[mapid] % 2 == 1 && rs == 0) {
doanimate(x,y,p,t,mapid,pathNumber);
- else
+ } else {
setTimeout("doanimate("+x+","+y+",'"+p+"','"+t+"','"+mapid+"','"+pathNumber+"')",rs);
-//setTimeout("doanimate("+x+","+y+",'"+p+"','"+t+"','"+mapid+"','"+pathNumber+"')",1);
-
+ }
}
@@ -932,6 +934,7 @@ function getSpeedOptions(mapID) {
listObj[2] = 'Med';
listObj[3] = 'Fast';
listObj[4] = 'Ultra';
+ listObj[5] = 'Insane';
var r = '';
r += " <select onChange='savePref(\"speed\", this.value)' id='"+mapID+",speed'>";
for (var i in listObj) {