1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 00:43:21 +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
commit 358b46beea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ namespace osu.Game.Rulesets.Scoring
/// <summary> /// <summary>
/// The current health. /// The current health.
/// </summary> /// </summary>
public readonly BindableDouble Health = new BindableDouble { MinValue = 0, MaxValue = 1 }; public readonly BindableDouble Health = new BindableDouble(1) { MinValue = 0, MaxValue = 1 };
/// <summary> /// <summary>
/// The current combo. /// The current combo.
@ -233,6 +233,8 @@ namespace osu.Game.Rulesets.Scoring
drawableRuleset.OnRevertResult += revertResult; drawableRuleset.OnRevertResult += revertResult;
ApplyBeatmap(drawableRuleset.Beatmap); ApplyBeatmap(drawableRuleset.Beatmap);
Reset(false);
SimulateAutoplay(drawableRuleset.Beatmap); SimulateAutoplay(drawableRuleset.Beatmap);
Reset(true); Reset(true);