Commit eb3ca2b
Fix OsuModAutopilot spinner tracking by improving frame following logic
The previous frame following logic in OsuModAutopilot.Update was insufficient for high-frequency replay frames (such as those generated for spinners), causing the cursor to lag behind and effectively stay stationary during spin sequences.
This change replaces the `if` check with a `while` loop, allowing the autopilot to skip multiple replay frames in a single update if necessary to catch up to the current gameplay time. This ensures that the spinner motion encoded in the replay frames is correctly executed.
Also removed the TODO comment regarding spinner implementation as it is now functional.
Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>1 parent c9a50b4 commit eb3ca2b
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | | - | |
| 65 | + | |
| 66 | + | |
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| |||
0 commit comments