mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +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:
@@ -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