]> granicus.if.org Git - nethack/commitdiff
fix #H5333 - overview annotation for quest summons
authorPatR <rankin@nethack.org>
Wed, 12 Apr 2017 00:58:14 +0000 (17:58 -0700)
committerPatR <rankin@nethack.org>
Wed, 12 Apr 2017 00:58:14 +0000 (17:58 -0700)
The automatic annotations supplied for various special levels were
treating the quest leader's summons as being mutually exclusive with
the other things of interest.  It's not, so wasn't shown if the entry
portal was on either the bigroom level or the rogue level.  Handle it
differently from the rest so that it can stack with annotations for
those levels.  (The annotation for the portal itself, which doesn't
get added until traversed, was already handled differently and shown
correctly on those levels.)

doc/fixes36.1
src/dungeon.c

index ce42dc224784a029d95cd3ffa1fefde376b68ca1..5e6707bf89970d63c0e0955495a9d6bdc2fd104c 100644 (file)
@@ -370,6 +370,8 @@ g.cubes would eat globs of green slime without harm; engulf those instead
 fix up true rumor about rock moles vs boots
 Bell of Opening could trigger segfault attempting to open some types of traps
        if hero was mounted
+automatic #overview annotation for quest summons wasn't shown if the quest
+       entry portal was on same level as bigroom or rogue level
 
 
 Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
index d3b603143d572d6e4c78c5445488fe02f885c7c6..5b5e7c3690143c0a6501c9ebbff661ac02b1e0d5 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 dungeon.c       $NHDT-Date: 1470275509 2016/08/04 01:51:49 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.76 $ */
+/* NetHack 3.6 dungeon.c       $NHDT-Date: 1491958681 2017/04/12 00:58:01 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.79 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -2951,8 +2951,6 @@ boolean printdun;
         Sprintf(buf, "%sA very big room.", PREFIX);
     } else if (mptr->flags.roguelevel) {
         Sprintf(buf, "%sA primitive area.", PREFIX);
-    } else if (mptr->flags.quest_summons) {
-        Sprintf(buf, "%sSummoned by %s.", PREFIX, ldrname());
     } else if (on_level(&mptr->lev, &qstart_level)) {
         Sprintf(buf, "%sHome%s.", PREFIX,
                 mptr->flags.unreachable ? " (no way back...)" : "");
@@ -2974,6 +2972,11 @@ boolean printdun;
     }
     if (*buf)
         putstr(win, 0, buf);
+    /* quest entrance is not mutually-exclusive with bigroom or rogue level */
+    if (mptr->flags.quest_summons) {
+        Sprintf(buf, "%sSummoned by %s.", PREFIX, ldrname());
+        putstr(win, 0, buf);
+    }
 
     /* print out branches */
     if (mptr->br) {