1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +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 want to hide the hitrenderer immediately (looks better).
//we may be able to remove this once the mouse cursor trail is improved. //we may be able to remove this once the mouse cursor trail is improved.
RulesetContainer?.Hide(); RulesetContainer?.Hide();
Restart(); Restart();
}
}, },
} }
}; };
@ -290,8 +290,8 @@ 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, Beatmap = Beatmap.Value.BeatmapInfo,
@ -300,7 +300,6 @@ namespace osu.Game.Screens.Play
scoreProcessor.PopulateScore(score); scoreProcessor.PopulateScore(score);
score.User = RulesetContainer.Replay?.User ?? api.LocalUser.Value; score.User = RulesetContainer.Replay?.User ?? api.LocalUser.Value;
Push(new Results(score)); Push(new Results(score));
}
}); });
} }
} }