Source spectator state sent to server from gameplay state

This commit is contained in:
Bartłomiej Dach 2021-10-16 13:48:49 +02:00
parent 29ec498f6c
commit e57d6e930e
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -144,9 +144,9 @@ namespace osu.Game.Online.Spectator
IsPlaying = true;
// transfer state at point of beginning play
currentState.BeatmapID = score.ScoreInfo.BeatmapInfo.OnlineBeatmapID;
currentState.RulesetID = score.ScoreInfo.RulesetID;
currentState.Mods = score.ScoreInfo.Mods.Select(m => new APIMod(m)).ToArray();
currentState.BeatmapID = state.Beatmap.BeatmapInfo.OnlineBeatmapID;
currentState.RulesetID = state.Ruleset.RulesetInfo.ID;
currentState.Mods = state.Mods.Select(m => new APIMod(m)).ToArray();
currentBeatmap = state.Beatmap;
currentScore = score;