From: nhmall Date: Sun, 5 Feb 2023 16:41:59 +0000 (-0500) Subject: typo fix in macsound.m X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47c44e490758832e53a5180c074fcd31838a26b5;p=nethack typo fix in macsound.m --- diff --git a/sound/macsound/macsound.m b/sound/macsound/macsound.m index 51d0e1bed..bbbc9cfec 100644 --- a/sound/macsound/macsound.m +++ b/sound/macsound/macsound.m @@ -76,7 +76,7 @@ static int32_t affiliation[number_of_se_entries + number_of_sa2_entries + EXTRA_ static NSString *soundstring[number_of_se_entries + number_of_sa2_entries + EXTRA_SOUNDS]; static NSSound *seSound[number_of_se_entries + number_of_sa2_entries + EXTRA_SOUNDS]; -#ifdef SND_SOUNDEFFECS_AUTOMAP +#ifdef SND_SOUNDEFFECTS_AUTOMAP #define AUTOMAPONLY #else #define AUTOMAPONLY UNUSED @@ -243,9 +243,15 @@ static void macsound_hero_playnotes(int32_t instrument WAVEMUSICONLY, #define ACHIEVEMENT_SOUNDS +#ifdef ACHIEVEMENT_SOUNDS +#define ACHIEVEONLY +#else +#define ACHIEVEONLY UNUSED +#endif + /* fulfill SOUND_TRIGGER_ACHIEVEMENTS */ static void -macsound_achievement(schar ach1 UNUSED, schar ach2 UNUSED, int32_t repeat UNUSED) +macsound_achievement(schar ach1 ACHIEVEONLY, schar ach2 ACHIEVEONLY, int32_t repeat ACHIEVEONLY) { #ifdef ACHIEVEMENT_SOUNDS char resourcename[120];