mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:52:56 +08:00
Remove some unnecessary code
This commit is contained in:
parent
61c400b1a1
commit
3e46d6401e
@ -82,7 +82,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
}
|
||||
|
||||
private bool canStartGameplay =>
|
||||
// All players must be loaded.
|
||||
// All players must be loaded, and...
|
||||
AllPlayersLoaded
|
||||
&& (
|
||||
// All players have frames...
|
||||
|
@ -7,7 +7,6 @@ using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets;
|
||||
using osu.Game.Scoring;
|
||||
using osu.Game.Screens.Play;
|
||||
using osu.Game.Users;
|
||||
@ -24,7 +23,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
public User User => Score.ScoreInfo.User;
|
||||
|
||||
public WorkingBeatmap Beatmap { get; private set; }
|
||||
public Ruleset Ruleset { get; private set; }
|
||||
|
||||
public readonly Score Score;
|
||||
|
||||
@ -43,7 +41,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
private void load(BeatmapManager beatmapManager)
|
||||
{
|
||||
Beatmap = beatmapManager.GetWorkingBeatmap(Score.ScoreInfo.Beatmap, bypassCache: true);
|
||||
Ruleset = Score.ScoreInfo.Ruleset.CreateInstance();
|
||||
|
||||
InternalChild = new GameplayIsolationContainer(Beatmap, Score.ScoreInfo.Ruleset, Score.ScoreInfo.Mods)
|
||||
{
|
||||
@ -87,15 +84,11 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
return;
|
||||
|
||||
if (catchupRequired)
|
||||
{
|
||||
Beatmap.Track.AddAdjustment(AdjustableProperty.Frequency, catchupFrequencyAdjustment);
|
||||
isCatchingUp = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Beatmap.Track.RemoveAdjustment(AdjustableProperty.Frequency, catchupFrequencyAdjustment);
|
||||
isCatchingUp = false;
|
||||
}
|
||||
|
||||
isCatchingUp = catchupRequired;
|
||||
}
|
||||
|
||||
public double GetCurrentGameplayTime()
|
||||
|
Loading…
Reference in New Issue
Block a user