]> granicus.if.org Git - nethack/commitdiff
fix #H5264 fix
authorPatR <rankin@nethack.org>
Wed, 5 Apr 2017 19:44:55 +0000 (12:44 -0700)
committerPatR <rankin@nethack.org>
Wed, 5 Apr 2017 19:44:55 +0000 (12:44 -0700)
MSGTYPE handling was being suppressed, except during prompting when
it was intended to be suppressed.

doc/fixes36.1
src/pline.c

index 7fa058915a41a8dffddf03e7983039c0c34c452a..5ad9d072ac85eb9148f250b2dccb8e090ec1f271 100644 (file)
@@ -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
index 118ed82eec5a887634fdb68915f127af03f70fba..2c174e672b6255fdfa7ab77a2a4241b9662ebb1b 100644 (file)
@@ -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)))