1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 06:09:59 +08:00

Fix incorrect triangle state within the first frame

This commit is contained in:
Thomas Müller
2017-05-29 18:24:17 +02:00
Unverified
parent 2f063ee41d
commit d3f2d480a8
+2 -3
View File
@@ -109,6 +109,8 @@ namespace osu.Game.Graphics.Backgrounds
Invalidate(Invalidation.DrawNode, shallPropagate: false);
addTriangles(false);
for (int i = 0; i < parts.Count; i++)
{
TriangleParticle newParticle = parts[i];
@@ -118,7 +120,6 @@ namespace osu.Game.Graphics.Backgrounds
(float)Math.Pow(DrawInfo.Colour.AverageColour.Linear.A, 3) :
1;
newParticle.Position += new Vector2(0, -(parts[i].Scale * (50 / DrawHeight)) / triangleScale * Velocity) * ((float)Time.Elapsed / 950);
newParticle.Colour.A = adjustedAlpha;
@@ -132,8 +133,6 @@ namespace osu.Game.Graphics.Backgrounds
if (bottomPos < 0)
parts.RemoveAt(i);
}
addTriangles(false);
}
private void addTriangles(bool randomY)