1
0
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:
Andrei Zavatski 2022-11-15 11:32:05 +03:00
parent ebff844334
commit c7dc6db124

View File

@ -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));
}