mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 07:19:54 +08:00
c827c2810b
This fixes two issues the previous algorithm had:
1. A half-turn rotation used to show up as -180°.
2. Rotating more than 180° in one drag event would overwhelm it
and cause the value to go outside its range.
This comes at the cost of a negligible performance hit,
since a division (modulo) is performed instead of just addition/subtraction.
c827c2810b
·
2023-04-08 01:30:29 +02:00
History