Skip to content

Commit

Permalink
Merge pull request #2540 from gamerbross/bugfix/attract-toycommercial…
Browse files Browse the repository at this point in the history
…-allow-volume

[BUGFIX] Allow Volume Keys while watching Toy Commercial (AttractState)
  • Loading branch information
EliteMasterEric authored May 18, 2024
2 parents 311fb1b + 85b9de1 commit 8432f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/funkin/ui/title/AttractState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AttractState extends MusicBeatState
super.update(elapsed);

// If the user presses any button, skip the video.
if (FlxG.keys.justPressed.ANY)
if (FlxG.keys.justPressed.ANY && !controls.VOLUME_MUTE && !controls.VOLUME_UP && !controls.VOLUME_DOWN)
{
onAttractEnd();
}
Expand Down

0 comments on commit 8432f06

Please sign in to comment.