1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 01:59:53 +08:00

Remove unnecessary double resolution of OsuGame

This commit is contained in:
Dean Herbert
2021-02-08 15:58:41 +09:00
Unverified
parent 93f1a3c1bf
commit 9e0724b138
+3 -4
View File
@@ -80,9 +80,6 @@ namespace osu.Game.Screens.Play
public int RestartCount;
[Resolved]
private OsuGameBase gameBase { get; set; }
[Resolved]
private ScoreManager scoreManager { get; set; }
@@ -160,7 +157,6 @@ namespace osu.Game.Screens.Play
if (!Mods.Value.Any(m => m is ModAutoplay))
PrepareReplay();
gameActive.BindTo(gameBase.IsActive);
gameActive.BindValueChanged(_ => updatePauseOnFocusLostState(), true);
}
@@ -195,7 +191,10 @@ namespace osu.Game.Screens.Play
mouseWheelDisabled = config.GetBindable<bool>(OsuSetting.MouseDisableWheel);
if (game != null)
{
LocalUserPlaying.BindTo(game.LocalUserPlaying);
gameActive.BindTo(game.IsActive);
}
DrawableRuleset = ruleset.CreateDrawableRulesetWith(playableBeatmap, Mods.Value);