mirror of
https://github.com/ppy/osu
synced 2024-12-14 10:57:41 +00:00
Remove unnecessary double resolution of OsuGame
This commit is contained in:
parent
93f1a3c1bf
commit
9e0724b138
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user