Skip to content

Commit

Permalink
Remove second sample playback when clicking osu! logo.
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Feb 18, 2017
1 parent ebc3891 commit c119410
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions osu.Game/Screens/Menu/ButtonSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ public partial class ButtonSystem : Container, IStateful<MenuState>
public Action OnChart;
public Action OnTest;

private SampleChannel sampleOsuClick;

private Toolbar toolbar;

private FlowContainerWithOrigin buttonFlow;
Expand Down Expand Up @@ -122,7 +120,6 @@ public ButtonSystem()
[BackgroundDependencyLoader(true)]
private void load(AudioManager audio, OsuGame game = null)
{
sampleOsuClick = audio.Sample.Get(@"Menu/menuhit");
toolbar = game?.Toolbar;
}

Expand Down Expand Up @@ -181,7 +178,6 @@ private void onOsuLogo()
switch (state)
{
case MenuState.Initial:
sampleOsuClick.Play();
State = MenuState.TopLevel;
return;
case MenuState.TopLevel:
Expand Down

0 comments on commit c119410

Please sign in to comment.