Rename other variables to match

This commit is contained in:
Dean Herbert 2020-10-27 10:59:24 +09:00
parent 7392876b5f
commit 68719bb23d

View File

@ -50,10 +50,10 @@ namespace osu.Game.Online.Spectator
private IBeatmap currentBeatmap; private IBeatmap currentBeatmap;
[Resolved] [Resolved]
private IBindable<RulesetInfo> ruleset { get; set; } private IBindable<RulesetInfo> currentRuleset { get; set; }
[Resolved] [Resolved]
private IBindable<IReadOnlyList<Mod>> mods { get; set; } private IBindable<IReadOnlyList<Mod>> currentMods { get; set; }
private readonly SpectatorState currentState = new SpectatorState(); private readonly SpectatorState currentState = new SpectatorState();
@ -178,8 +178,8 @@ namespace osu.Game.Online.Spectator
// transfer state at point of beginning play // transfer state at point of beginning play
currentState.BeatmapID = beatmap.BeatmapInfo.OnlineBeatmapID; currentState.BeatmapID = beatmap.BeatmapInfo.OnlineBeatmapID;
currentState.RulesetID = ruleset.Value.ID; currentState.RulesetID = currentRuleset.Value.ID;
currentState.Mods = mods.Value.Select(m => new APIMod(m)); currentState.Mods = currentMods.Value.Select(m => new APIMod(m));
currentBeatmap = beatmap.PlayableBeatmap; currentBeatmap = beatmap.PlayableBeatmap;
beginPlaying(); beginPlaying();