overriding message suppression, revisited

This is more robust than the previous hack.  The issue of whether to
use it in other places is still unexplored.  Ultimately it's the user's
fault if overzealous message suppression hides something important.
[For an eerie game, try 'MSGTYPE=hide .'.]
This commit is contained in:
PatR
2016-01-19 18:16:13 -08:00
parent 7482be39e8
commit 2e2b54e548
6 changed files with 46 additions and 25 deletions

View File

@@ -2830,8 +2830,16 @@ boolean picked_some;
int
dolook()
{
iflags.last_msg = PLNMSG_NOREP_OVERRIDE;
return look_here(0, FALSE);
int res;
/* don't let
MSGTYPE={norep,noshow} "You see here"
interfere with feedback from the look-here command */
hide_unhide_msgtypes(TRUE, MSGTYP_MASK_REP_SHOW);
res = look_here(0, FALSE);
/* restore normal msgtype handling */
hide_unhide_msgtypes(FALSE, MSGTYP_MASK_REP_SHOW);
return res;
}
boolean