]> granicus.if.org Git - nethack/commitdiff
priest names
authorarromdee <arromdee>
Mon, 21 Jan 2002 03:30:51 +0000 (03:30 +0000)
committerarromdee <arromdee>
Mon, 21 Jan 2002 03:30:51 +0000 (03:30 +0000)
src/do_name.c

index b24b81668abbcaeb1d8035c4762ce2c277e47fad..176cf0c23bcdea35dd776f88c9ac680803032310 100644 (file)
@@ -598,6 +598,12 @@ boolean called;
 
        buf[0] = 0;
 
+       /* unseen monsters, etc.  Use "it" */
+       if (do_it) {
+           Strcpy(buf, "it");
+           return buf;
+       }
+
        /* priests and minions: don't even use this function */
        if (mtmp->ispriest || mtmp->isminion) {
            char priestnambuf[BUFSZ];
@@ -616,12 +622,6 @@ boolean called;
            return strcpy(buf, name);
        }
 
-       /* unseen monsters, etc.  Use "it" */
-       if (do_it) {
-           Strcpy(buf, "it");
-           return buf;
-       }
-
        /* Shopkeepers: use shopkeeper name.  For normal shopkeepers, just
         * "Asidonhopo"; for unusual ones, "Asidonhopo the invisible
         * shopkeeper" or "Asidonhopo the blue dragon".  If hallucinating,