mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 12:32:56 +08:00
Fix possible loss of fraction
This commit is contained in:
parent
d3662636d6
commit
cea8dc5602
@ -163,7 +163,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
for (int i = 0; i < bars_per_visualizer * visualizers; i++)
|
for (int i = 0; i < bars_per_visualizer * visualizers; i++)
|
||||||
{
|
{
|
||||||
float rotation = MathHelper.DegreesToRadians(i / (float)bars_per_visualizer * 360 + i / bars_per_visualizer * 360 / visualizers);
|
float rotation = MathHelper.DegreesToRadians(i / (float)bars_per_visualizer * 360 + i / bars_per_visualizer * (360 / visualizers));
|
||||||
float rotationCos = (float)Math.Cos(rotation);
|
float rotationCos = (float)Math.Cos(rotation);
|
||||||
float rotationSin = (float)Math.Sin(rotation);
|
float rotationSin = (float)Math.Sin(rotation);
|
||||||
//taking the cos and sin to the 0..1 range
|
//taking the cos and sin to the 0..1 range
|
||||||
|
Loading…
Reference in New Issue
Block a user