]> granicus.if.org Git - nethack/commitdiff
avoid you see it hatch
authorcohrs <cohrs>
Wed, 20 Feb 2002 02:33:14 +0000 (02:33 +0000)
committercohrs <cohrs>
Wed, 20 Feb 2002 02:33:14 +0000 (02:33 +0000)
enexto may place monster out of site, even though egg was in sight.  use
an(m_monnam(mon)) not a_monnam.  Works in this case due to earlier checks.

src/timeout.c

index 96e8b2226b2f08ef2552eee9ff7ba2af6f6f4e04..9a68ed879fe8137014175c301146f3c0dc8bdbca 100644 (file)
@@ -494,7 +494,8 @@ long timeout;
            if (cansee_hatchspot) {
                Sprintf(monnambuf, "%s%s",
                        siblings ? "some " : "",
-                       siblings ? makeplural(m_monnam(mon)) : a_monnam(mon));
+                       siblings ?
+                       makeplural(m_monnam(mon)) : an(m_monnam(mon)));
                /* we don't learn the egg type here because learning
                   an egg type requires either seeing the egg hatch
                   or being familiar with the egg already,