1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 12:10:32 +08:00

Merge pull request #6031 from iiSaLMaN/set-health-default-value-to-1

Fix results screen pushed at the beginning of a gameplay

Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
Dean Herbert
2019-09-09 15:04:08 +09:00
committed by GitHub
Unverified
+3 -1
View File
@@ -55,7 +55,7 @@ namespace osu.Game.Rulesets.Scoring
/// <summary>
/// The current health.
/// </summary>
public readonly BindableDouble Health = new BindableDouble { MinValue = 0, MaxValue = 1 };
public readonly BindableDouble Health = new BindableDouble(1) { MinValue = 0, MaxValue = 1 };
/// <summary>
/// The current combo.
@@ -233,6 +233,8 @@ namespace osu.Game.Rulesets.Scoring
drawableRuleset.OnRevertResult += revertResult;
ApplyBeatmap(drawableRuleset.Beatmap);
Reset(false);
SimulateAutoplay(drawableRuleset.Beatmap);
Reset(true);