1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Remove unnecessary cast by changing method siganture

This commit is contained in:
Dean Herbert 2020-02-20 15:45:47 +09:00
parent 5551343cf3
commit 8f5d3896f6

View File

@ -221,9 +221,9 @@ namespace osu.Game.Rulesets.Catch.UI
/// Add a caught fruit to the catcher's stack.
/// </summary>
/// <param name="fruit">The fruit that was caught.</param>
public void PlaceOnPlate(DrawableHitObject fruit)
public void PlaceOnPlate(DrawableCatchHitObject fruit)
{
float ourRadius = ((DrawableCatchHitObject)fruit).DisplayRadius;
float ourRadius = fruit.DisplayRadius;
float theirRadius = 0;
const float allowance = 6;