Skip to content

Commit 083f8a7

Browse files
fix: MathF.Clamp → float.Clamp in ParticleSpewer (MathF has no Clamp method)
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/850e952a-f9d0-41e8-8029-923e55c58bcf Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent e73c3c9 commit 083f8a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

osu.Game/Graphics/ParticleSpewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public Vector2 PositionAtTime(float timeSinceStart, float gravity, float maxDura
241241
return StartPosition + (Velocity + currentGravity) * timeSinceStart / maxDuration;
242242
}
243243

244-
private float progressAtTime(float timeSinceStart) => MathF.Clamp(timeSinceStart / Duration, 0, 1);
244+
private float progressAtTime(float timeSinceStart) => float.Clamp(timeSinceStart / Duration, 0, 1);
245245
}
246246
}
247247
}

0 commit comments

Comments
 (0)