]> granicus.if.org Git - nethack/commitdiff
B14009 order of altar feeling messages
authorcohrs <cohrs>
Sun, 27 Oct 2002 16:30:35 +0000 (16:30 +0000)
committercohrs <cohrs>
Sun, 27 Oct 2002 16:30:35 +0000 (16:30 +0000)
Special case the altar feeling messages to avoid saying you're feeling
the altar and then saying there's an altar here.

src/invent.c

index 9d5d0a8beca07e8b2fa0e0f8c5b9259c2e903d95..9e036119beac7a3e6a0a7fd72900cfa3c56c4e03 100644 (file)
@@ -2135,9 +2135,14 @@ boolean picked_some;
 
        if (Blind) {
                boolean drift = Is_airlevel(&u.uz) || Is_waterlevel(&u.uz);
-               You("try to feel what is %s%s.",
-                   drift ? "floating here" : "lying here on the ",
-                   drift ?     ""          : surface(u.ux, u.uy));
+               if (dfeature && !strncmp(dfeature, "altar ", 6)) {
+                   /* don't say "altar" twice, dfeature has more info */
+                   You("try to feel what is here.");
+               } else {
+                   You("try to feel what is %s%s.",
+                       drift ? "floating here" : "lying here on the ",
+                       drift ? ""              : surface(u.ux, u.uy));
+               }
                if (dfeature && !drift && !strcmp(dfeature, surface(u.ux,u.uy)))
                        dfeature = 0;           /* ice already identifed */
                if (!can_reach_floor()) {