From: PatR Date: Wed, 5 Apr 2017 19:44:55 +0000 (-0700) Subject: fix #H5264 fix X-Git-Tag: NetHack-3.6.1_RC01~505 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1fbfcc8b592c2a88c93cbcc702697c35764681b;p=nethack fix #H5264 fix MSGTYPE handling was being suppressed, except during prompting when it was intended to be suppressed. --- diff --git a/doc/fixes36.1 b/doc/fixes36.1 index 7fa058915..5ad9d072a 100644 --- a/doc/fixes36.1 +++ b/doc/fixes36.1 @@ -403,6 +403,7 @@ DUMPLOG: RIP tombstone was printed for characters who survived (ascended, artifact creation violated illiterate conduct when artifact name was assigned, behavior intended only for creating Sting or Orcrist via naming tty: revert to pline() for issuing prompts (override MSGTYPE=hide differently) +previous tty-revert fix had the override test backwards, breaking MSGTYPE Platform- and/or Interface-Specific Fixes diff --git a/src/pline.c b/src/pline.c index 118ed82ee..2c174e672 100644 --- a/src/pline.c +++ b/src/pline.c @@ -145,7 +145,7 @@ VA_DECL(const char *, line) if ((pline_flags & SUPPRESS_HISTORY) == 0) dumplogmsg(line); #endif - if ((pline_flags & OVERRIDE_MSGTYPE) != 0) { + if ((pline_flags & OVERRIDE_MSGTYPE) == 0) { msgtyp = msgtype_type(line, no_repeat); if (msgtyp == MSGTYP_NOSHOW || (msgtyp == MSGTYP_NOREP && !strcmp(line, prevmsg)))