mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Separate smoke rotation seed and index
This commit is contained in:
parent
029f896db8
commit
46bcabea6c
@ -234,7 +234,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
if (points.Count == 0)
|
||||
return;
|
||||
|
||||
rotationIndex = rotationSeed;
|
||||
rotationIndex = 0;
|
||||
|
||||
quadBatch ??= renderer.CreateQuadBatch<TexturedVertex2D>(max_point_count / 10, 10);
|
||||
texture ??= renderer.WhitePixel;
|
||||
@ -314,11 +314,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
return new Vector2(MathF.Sin(angle), -MathF.Cos(angle));
|
||||
}
|
||||
|
||||
private float nextRotation()
|
||||
{
|
||||
rotationIndex++;
|
||||
return max_rotation * (StatelessRNG.NextSingle(rotationIndex) * 2 - 1);
|
||||
}
|
||||
private float nextRotation() => max_rotation * (StatelessRNG.NextSingle(rotationSeed, rotationIndex++) * 2 - 1);
|
||||
|
||||
private void drawPointQuad(SmokePoint point, RectangleF textureRect)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user