]> granicus.if.org Git - nethack/commitdiff
hearing a boulder fall
authornethack.allison <nethack.allison>
Sat, 5 Jun 2004 13:56:29 +0000 (13:56 +0000)
committernethack.allison <nethack.allison>
Sat, 5 Jun 2004 13:56:29 +0000 (13:56 +0000)
As From a bug report, if you couldn't see a rolling boulder
fall into a pit, you only heard the sound if you were blind.
Also fixes the article used in the message.

doc/fixes34.4
src/do.c

index 2a54dc5fee6d124d42b2da267da32fe27196f672..aeefbc06b727f5fc067f56cdfd00ec5830b87384 100644 (file)
@@ -32,6 +32,8 @@ prevent "offering" or other words with similar ending from matching ring quote
 make cleric cast lightning blind as other lightning does
 change the wording slightly to use "one of " when a monster wielding 
        multiple daggers thrusts them
+if you didn't see a rolling boulder fall into a pit, you only heard the sound
+       of it doing so if you were blind
 
 
 Platform- and/or Interface-Specific Fixes
index 3f379e49fe3d77443067806aa34fafa4c0f8a005..7beb553739bc2178657acafe0748875d00decb19 100644 (file)
--- a/src/do.c
+++ b/src/do.c
@@ -171,17 +171,16 @@ const char *verb;
                    }
                }
                if (*verb) {
-                       if (Blind) {
-                               if ((x == u.ux) && (y == u.uy))
-                                       You_hear("a CRASH! beneath you.");
-                               else
-                                       You_hear("the boulder %s.", verb);
+                       if (Blind && (x == u.ux) && (y == u.uy)) {
+                               You_hear("a CRASH! beneath you.");
                        } else if (cansee(x, y)) {
                                pline_The("boulder %s%s.",
                                    t->tseen ? "" : "triggers and ",
                                    t->ttyp == TRAPDOOR ? "plugs a trap door" :
                                    t->ttyp == HOLE ? "plugs a hole" :
                                    "fills a pit");
+                       } else {
+                               You_hear("a boulder %s.", verb);
                        }
                }
                deltrap(t);