Remove unnecessary double resolution of OsuGame

This commit is contained in:
Dean Herbert 2021-02-08 15:58:41 +09:00
parent 93f1a3c1bf
commit 9e0724b138

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);