mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 22:34:21 +03:00
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:
1 parent
837ccfc735
commit
4ba9954eb8
2 files changed
+15
-38
No files matched your search
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user