mirror of
https://github.com/ppy/osu
synced 2025-02-19 11:56:58 +00:00
Fix incorrect triangle state within the first frame
This commit is contained in:
parent
2f063ee41d
commit
d3f2d480a8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user