]> granicus.if.org Git - nethack/commitdiff
deafness fix (trunk only)
authornethack.rankin <nethack.rankin>
Mon, 10 Nov 2003 08:09:15 +0000 (08:09 +0000)
committernethack.rankin <nethack.rankin>
Mon, 10 Nov 2003 08:09:15 +0000 (08:09 +0000)
     Evidently the trunk code isn't undergoing much testing lately;
"you hear <blah>" messages have been broken for a couple of weeks now.

src/pline.c

index 6c2af6072b1f4953998e896e89427b5c59d5bb1e..ea863dd7ef10e1b8124c136c088321e10baee779 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)pline.c    3.4     1999/11/28      */
+/*     SCCS Id: @(#)pline.c    3.4     2003/11/06      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -174,7 +174,7 @@ void
 You_hear VA_DECL(const char *,line)
        char *tmp;
 
-       if (Deaf || flags.acoustics) return;
+       if (Deaf || !flags.acoustics) return;
        VA_START(line);
        VA_INIT(line, const char *);
        if (Underwater)