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:
parent
5551343cf3
commit
8f5d3896f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user