Skip to content

Commit

Permalink
aaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackx2 committed Jan 30, 2025
1 parent 80bb4d4 commit 15b9968
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion source/funkin/game/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ class Main extends Sprite

// Audio Fix
@:dox(hide) public static var audioDisconnected(default,set):Bool = false;
@:noCompletion private static function set_audioDisconnected(value:Bool) {
@:noCompletion private static function set_audioDisconnected(value:Bool) {// oops
audioDisconnected = value;
@:privateAccess AudioSwitchFix.onStateSwitch(FlxG.state);
return audioDisconnected = value;
}
Expand Down
6 changes: 3 additions & 3 deletions source/funkin/game/states/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,17 @@ class MainMenuState extends MusicBeatState

if (controls.UI_UP_P)
{
FlxG.sound.play(Paths.sound('scrollMenu'));
FlxG.sound.list.add(FlxG.sound.play(Paths.sound('scrollMenu')));
changeItem(-1);
}
else if (controls.UI_DOWN_P)
{
FlxG.sound.play(Paths.sound('scrollMenu'));
FlxG.sound.list.add(FlxG.sound.play(Paths.sound('scrollMenu')));
changeItem(1);
}
else if (FlxG.mouse.wheel != 0)
{
FlxG.sound.play(Paths.sound('scrollMenu'), 0.4);
FlxG.sound.list.add(FlxG.sound.play(Paths.sound('scrollMenu'), 0.4));
changeItem(-FlxG.mouse.wheel);
}

Expand Down

0 comments on commit 15b9968

Please sign in to comment.