mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Move default value out of switch statement
This commit is contained in:
parent
c9c8ed7c77
commit
a556caae43
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user