Skip to content

Commit

Permalink
Minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Burgerballs authored Jun 12, 2024
1 parent 9908f97 commit 4c8085b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/funkin/play/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,12 @@ class PauseSubState extends MusicBeatSubState
*/
function changeSelection(change:Int = 0):Void
{
var prevEntry:Int = currentEntry;
currentEntry += change;

if (currentEntry < 0) currentEntry = currentMenuEntries.length - 1;
if (currentEntry >= currentMenuEntries.length) currentEntry = 0;

if (currentEntry != prevEntry) FunkinSound.playOnce(Paths.sound('scrollMenu'), 0.4);
if (change != 0) FunkinSound.playOnce(Paths.sound('scrollMenu'), 0.4);

for (entryIndex in 0...currentMenuEntries.length)
{
Expand Down

0 comments on commit 4c8085b

Please sign in to comment.