]> granicus.if.org Git - nethack/commitdiff
wizard mode bit
authornethack.rankin <nethack.rankin>
Sun, 7 Jan 2007 05:22:31 +0000 (05:22 +0000)
committernethack.rankin <nethack.rankin>
Sun, 7 Jan 2007 05:22:31 +0000 (05:22 +0000)
     Wishing for a grave would say it made one even when it didn't.
[How come graves aren't allowed at corridor locations?]

src/objnam.c

index c56b4930ed9a8b97fcd202284ac7345c08d0f991..7b93aa32eef70d8ef87120c173cdde9f87aea743 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)objnam.c   3.5     2006/11/25      */
+/*     SCCS Id: @(#)objnam.c   3.5     2007/01/06      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -2784,7 +2784,8 @@ srch:
 
                if(!BSTRCMP(bp, p-5, "grave") || !BSTRCMP(bp, p-9, "headstone")) {
                    make_grave(u.ux, u.uy, (char *) 0);
-                   pline("A grave.");
+                   pline("%s.", IS_GRAVE(levl[u.ux][u.uy].typ) ? "A grave" :
+                                "Can't place a grave here");
                    newsym(u.ux, u.uy);
                    return(&zeroobj);
                }