mirror of https://github.com/ppy/osu
Rename other variables to match
This commit is contained in:
parent
7392876b5f
commit
68719bb23d
|
@ -50,10 +50,10 @@ public class SpectatorStreamingClient : Component, ISpectatorClient
|
|||
private IBeatmap currentBeatmap;
|
||||
|
||||
[Resolved]
|
||||
private IBindable<RulesetInfo> ruleset { get; set; }
|
||||
private IBindable<RulesetInfo> currentRuleset { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private IBindable<IReadOnlyList<Mod>> mods { get; set; }
|
||||
private IBindable<IReadOnlyList<Mod>> currentMods { get; set; }
|
||||
|
||||
private readonly SpectatorState currentState = new SpectatorState();
|
||||
|
||||
|
@ -178,8 +178,8 @@ public void BeginPlaying(GameplayBeatmap beatmap)
|
|||
|
||||
// transfer state at point of beginning play
|
||||
currentState.BeatmapID = beatmap.BeatmapInfo.OnlineBeatmapID;
|
||||
currentState.RulesetID = ruleset.Value.ID;
|
||||
currentState.Mods = mods.Value.Select(m => new APIMod(m));
|
||||
currentState.RulesetID = currentRuleset.Value.ID;
|
||||
currentState.Mods = currentMods.Value.Select(m => new APIMod(m));
|
||||
|
||||
currentBeatmap = beatmap.PlayableBeatmap;
|
||||
beginPlaying();
|
||||
|
|
Loading…
Reference in New Issue