1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 19:52:55 +08:00

Intverted conditionals.

This commit is contained in:
Michael Manis 2018-01-22 01:06:27 -05:00
parent 35e7399bef
commit 794ae5380a
2 changed files with 16 additions and 17 deletions

@ -1 +1 @@
Subproject commit 26c01ca6069296621f76d8ffbfe31ecf8074c687 Subproject commit 8f36ddab946ff538620081ede7719461d4732b79

View File

@ -208,12 +208,12 @@ namespace osu.Game.Screens.Play
new HotkeyRetryOverlay new HotkeyRetryOverlay
{ {
Action = () => { Action = () => {
if (IsCurrentScreen) { if (!IsCurrentScreen) return;
//we want to hide the hitrenderer immediately (looks better).
//we may be able to remove this once the mouse cursor trail is improved. //we want to hide the hitrenderer immediately (looks better).
RulesetContainer?.Hide(); //we may be able to remove this once the mouse cursor trail is improved.
Restart(); RulesetContainer?.Hide();
} Restart();
}, },
} }
}; };
@ -290,17 +290,16 @@ namespace osu.Game.Screens.Play
{ {
onCompletionEvent = Schedule(delegate onCompletionEvent = Schedule(delegate
{ {
if (IsCurrentScreen) if (!IsCurrentScreen) return;
var score = new Score
{ {
var score = new Score Beatmap = Beatmap.Value.BeatmapInfo,
{ Ruleset = ruleset
Beatmap = Beatmap.Value.BeatmapInfo, };
Ruleset = ruleset scoreProcessor.PopulateScore(score);
}; score.User = RulesetContainer.Replay?.User ?? api.LocalUser.Value;
scoreProcessor.PopulateScore(score); Push(new Results(score));
score.User = RulesetContainer.Replay?.User ?? api.LocalUser.Value;
Push(new Results(score));
}
}); });
} }
} }