1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:59:35 +08:00

Fix rebase regressions

This commit is contained in:
Dean Herbert 2019-05-31 15:58:46 +09:00
parent e03a664970
commit a2fbcb2bd3
2 changed files with 8 additions and 12 deletions

View File

@ -15,7 +15,7 @@ using osuTK.Graphics;
namespace osu.Game.Tests.Visual.Gameplay
{
public class TestCaseLeadIn : RateAdjustedBeatmapTestCase
public class TestCaseLeadIn : RateAdjustedBeatmapTestScene
{
private Ruleset ruleset;
@ -52,15 +52,16 @@ namespace osu.Game.Tests.Visual.Gameplay
{
Beatmap.Value = new TestWorkingBeatmap(beatmap, Clock);
LoadScreen(player = new LeadInPlayer
{
AllowPause = false,
AllowResults = false,
});
LoadScreen(player = new LeadInPlayer());
}
private class LeadInPlayer : Player
{
public LeadInPlayer()
: base(false, false)
{
}
public double? FirstFrameClockTime;
public new GameplayClockContainer GameplayClockContainer => base.GameplayClockContainer;
@ -72,6 +73,7 @@ namespace osu.Game.Tests.Visual.Gameplay
protected override void UpdateAfterChildren()
{
base.UpdateAfterChildren();
if (!FirstFrameClockTime.HasValue)
{
FirstFrameClockTime = GameplayClockContainer.GameplayClock.CurrentTime;

View File

@ -26,10 +26,6 @@ namespace osu.Game.Screens.Play
private readonly WorkingBeatmap beatmap;
private readonly IReadOnlyList<Mod> mods;
private readonly bool allowLeadIn;
private readonly double gameplayStartTime;
/// <summary>
/// The original source (usually a <see cref="WorkingBeatmap"/>'s track).
/// </summary>
@ -91,8 +87,6 @@ namespace osu.Game.Screens.Play
GameplayClock.IsPaused.BindTo(IsPaused);
}
private double totalOffset => userOffsetClock.Offset + platformOffsetClock.Offset;
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{