mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Fix incorrect number of added triangles
This commit is contained in:
parent
ebff844334
commit
c7dc6db124
@ -177,7 +177,9 @@ namespace osu.Game.Graphics.Backgrounds
|
||||
|
||||
AimCount = (int)Math.Min(max_triangles, DrawWidth * DrawHeight * 0.002f / (TriangleScale * TriangleScale) * SpawnRatio);
|
||||
|
||||
for (int i = 0; i < AimCount - parts.Count; i++)
|
||||
int currentCount = parts.Count;
|
||||
|
||||
for (int i = 0; i < AimCount - currentCount; i++)
|
||||
parts.Add(createTriangle(randomY));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user