From: David Cohrs Date: Sat, 16 Jan 2016 04:35:15 +0000 (-0800) Subject: Only print giant snatching boulder message when cansee pos. X-Git-Tag: NetHack-3.6.1_RC01~1015 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d2c82e482caf7a66009338351845fd62e26d4ab;p=nethack Only print giant snatching boulder message when cansee pos. Reported by a couple times directly to devteam, no bz. --- diff --git a/src/trap.c b/src/trap.c index 4a065d1ef..535014bef 100644 --- a/src/trap.c +++ b/src/trap.c @@ -1757,7 +1757,8 @@ int style; if ((mtmp = m_at(bhitpos.x, bhitpos.y)) != 0) { if (otyp == BOULDER && throws_rocks(mtmp->data)) { if (rn2(3)) { - pline("%s snatches the boulder.", Monnam(mtmp)); + if (cansee(bhitpos.x, bhitpos.y)) + pline("%s snatches the boulder.", Monnam(mtmp)); singleobj->otrapped = 0; (void) mpickobj(mtmp, singleobj); used_up = TRUE;