]> granicus.if.org Git - nethack/commitdiff
typo fix in macsound.m
authornhmall <nhmall@nethack.org>
Sun, 5 Feb 2023 16:41:59 +0000 (11:41 -0500)
committernhmall <nhmall@nethack.org>
Sun, 5 Feb 2023 16:41:59 +0000 (11:41 -0500)
sound/macsound/macsound.m

index 51d0e1bed58b281bc02e116351f745f99db30ba8..bbbc9cfecf5f3e48d5d7d4956ed8194770161235 100644 (file)
@@ -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];