Fixed spacing, added brackets. Ready to merge

This commit is contained in:
Leon422 2020-05-19 19:15:20 +01:00 committed by GitHub
parent 1590976046
commit c0a79af79c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -519,8 +519,8 @@ void optmenu_check_buttons(void) {
/* Enables cheats if the user press the L trigger 3 times while in the options menu. Also plays a sound. */
if (gPlayer1Controller->buttonPressed & L_TRIG && !Cheats.EnableCheats){
if (l_counter == 2){
if ((gPlayer1Controller->buttonPressed & L_TRIG) && !Cheats.EnableCheats) {
if (l_counter == 2) {
Cheats.EnableCheats = true;
play_sound(SOUND_MENU_STAR_SOUND, gDefaultSoundArgs);
l_counter = 0;