if only one monster in a monster-vs-monster fight is visible, show an I symbol
for the other one whether it is an attacker or defender
display "It" and not "The invisible <pet>" when an invisible pet eats food.
+include a hint about expected input when prompting for musical notes
Platform- and/or Interface-Specific Fixes
-/* SCCS Id: @(#)music.c 3.4 2001/12/03 */
+/* SCCS Id: @(#)music.c 3.4 2003/03/10 */
/* Copyright (c) 1989 by Jean-Christophe Collet */
/* NetHack may be freely redistributed. See license for details. */
struct obj *instr;
{
char buf[BUFSZ], c = 'y';
-#ifndef AMIGA
- char *s;
-#endif
+ char *s;
int x,y;
boolean ok;
c = yn("Improvise?");
}
if (c == 'n') {
- if (u.uevent.uheard_tune == 2 && yn("Play the passtune?") == 'y')
- Strcpy(buf, tune);
- else
- getlin("What tune are you playing? [what 5 notes]", buf);
-#ifndef AMIGA
- /* The AMIGA supports two octaves of notes */
- for (s=buf; *s; s++) *s = highc(*s);
+ if (u.uevent.uheard_tune == 2 && yn("Play the passtune?") == 'y') {
+ Strcpy(buf, tune);
+ } else {
+ getlin("What tune are you playing? [5 notes, A-G]", buf);
+ (void)mungspaces(buf);
+ /* convert to uppercase and change any "H" to the expected "B" */
+ for (s = buf; *s; s++) {
+#ifndef AMIGA
+ *s = highc(*s);
+#else
+ /* The AMIGA supports two octaves of notes */
+ if (*s == 'h') *s = 'b';
#endif
+ if (*s == 'H') *s = 'B';
+ }
+ }
You("extract a strange sound from %s!", the(xname(instr)));
#ifdef UNIX386MUSIC
/* if user is at the console, play through the console speaker */