From: cohrs Date: Thu, 24 Jan 2002 02:34:52 +0000 (+0000) Subject: another vision-related message X-Git-Tag: MOVE2GIT~3366 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fc3ef85378cda091da09ccb8aaef1e19fbe880d;p=nethack another vision-related message don't just say "the knife misses" when you can actually see the monster with infravision by testing using the correct function --- diff --git a/src/dothrow.c b/src/dothrow.c index 254003435..4f238ab2c 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -1091,8 +1091,7 @@ struct monst *mon; An attentive player will still notice that this is different from an arrow just landing short of any target (no message in that case), so will realize that there is a valid target here anyway. */ - if (!cansee(bhitpos.x, bhitpos.y) || - (mon->m_ap_type && mon->m_ap_type != M_AP_MONSTER)) + if (!canseemon(mon) || (mon->m_ap_type && mon->m_ap_type != M_AP_MONSTER)) pline("%s misses.", The(missile)); else miss(missile, mon);