Move cursor delay update logic to maplogic()

Otherwise it'll go really really fast.

Incidentally this also basically de-duplicates it and results in less
copy-pasted code overall.
This commit is contained in:
Misa
2020-04-28 21:32:53 -07:00
committed by Ethan Lee
parent 837ccfc735
commit 4ba9954eb8
2 changed files with 15 additions and 38 deletions

View File

@@ -61,6 +61,19 @@ void maplogic()
graphics.menuoffset = 0;
}
}
if (map.cursorstate == 0){
map.cursordelay++;
if (map.cursordelay > 10){
map.cursorstate = 1;
map.cursordelay = 0;
}
}else if (map.cursorstate == 1){
map.cursordelay++;
if (map.cursordelay > 30) map.cursorstate = 2;
}else if (map.cursorstate == 2){
map.cursordelay++;
}
}