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

Move default value out of switch statement

This commit is contained in:
Dean Herbert 2023-11-17 18:41:54 +09:00
parent c9c8ed7c77
commit a556caae43
No known key found for this signature in database

View File

@ -166,7 +166,7 @@ namespace osu.Game.Rulesets.Osu.Scoring
private double healthIncreaseFor(HitObject hitObject, HitResult result)
{
double increase;
double increase = 0;
switch (result)
{
@ -208,10 +208,6 @@ namespace osu.Game.Rulesets.Osu.Scoring
case HitResult.LargeBonus:
increase = 0.01;
break;
default:
increase = 0;
break;
}
return hpMultiplierNormal * increase;