From aa4f766185017f1324fc225f728a3e804270e31b Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Fri, 30 Jul 2021 21:40:45 -0700 Subject: [PATCH] Simply use a Boolean directly rather than do an explicit comparison with YES or NO. --- src/main-cocoa.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main-cocoa.m b/src/main-cocoa.m index 062372118..18bda742b 100644 --- a/src/main-cocoa.m +++ b/src/main-cocoa.m @@ -5572,7 +5572,7 @@ static void load_prefs(void) /* Preferred graphics mode */ graf_mode_req = [defs integerForKey:AngbandGraphicsDefaultsKey]; if (graphics_will_be_enabled() && - [defs boolForKey:AngbandBigTileDefaultsKey] == YES) { + [defs boolForKey:AngbandBigTileDefaultsKey]) { use_bigtile = TRUE; arg_bigtile = TRUE; } else { @@ -5581,7 +5581,7 @@ static void load_prefs(void) } /* Use sounds; set the Angband global */ - if ([defs boolForKey:AngbandSoundDefaultsKey] == YES) { + if ([defs boolForKey:AngbandSoundDefaultsKey]) { use_sound = TRUE; [AngbandSoundCatalog sharedSounds].enabled = YES; } else { @@ -5969,8 +5969,8 @@ static void init_windows(void) if (use_bigtile) { arg_bigtile = FALSE; } - } else if ([[NSUserDefaults angbandDefaults] boolForKey:AngbandBigTileDefaultsKey] == YES && - ! use_bigtile) { + } else if ([[NSUserDefaults angbandDefaults] boolForKey:AngbandBigTileDefaultsKey] + && ! use_bigtile) { arg_bigtile = TRUE; } -- 2.11.0