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:
12
src/invent.c
12
src/invent.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user