Skip to content

Commit

Permalink
Merge pull request #381 from peppy/general-fixes
Browse files Browse the repository at this point in the history
General fixes.
  • Loading branch information
peppy authored Feb 22, 2017
2 parents 0096b8c + 0d3cc39 commit 202976c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion osu.Game.Modes.Osu/Objects/Drawables/DrawableSlider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected override void Update()

if (repeat > currentRepeat)
{
if (ball.Tracking)
if (repeat < slider.RepeatCount && ball.Tracking)
PlaySample();
currentRepeat = repeat;
}
Expand Down
5 changes: 4 additions & 1 deletion osu.Game/Online/API/APIAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ private bool handleRequest(APIRequest req)
Logger.Log($@"Performing request {req}", LoggingTarget.Network);
req.Perform(this);

State = APIState.Online;
//we could still be in initialisation, at which point we don't want to say we're Online yet.
if (LocalUser.Value != null)
State = APIState.Online;

failureCount = 0;
return true;
}
Expand Down
31 changes: 16 additions & 15 deletions osu.Game/Screens/Play/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,21 +240,6 @@ public void Restart()
});
}

protected override void LoadComplete()
{
base.LoadComplete();

Content.Delay(250);
Content.FadeIn(250);

Delay(750);
Schedule(() =>
{
sourceClock.Start();
initializeSkipButton();
});
}

private void onPass()
{
Delay(1000);
Expand Down Expand Up @@ -290,6 +275,22 @@ protected override void OnEntering(Screen last)

Content.Alpha = 0;
dimLevel.ValueChanged += dimChanged;

Content.Delay(250);
Content.FadeIn(250);

Delay(750);
Schedule(() =>
{
sourceClock.Start();
initializeSkipButton();
});
}

protected override void OnSuspending(Screen next)
{
Content.FadeOut(350);
base.OnSuspending(next);
}

protected override bool OnExiting(Screen next)
Expand Down

0 comments on commit 202976c

Please sign in to comment.