]> granicus.if.org Git - nethack/commitdiff
tombstone engraving with fingers
authornethack.allison <nethack.allison>
Thu, 13 Feb 2003 11:04:56 +0000 (11:04 +0000)
committernethack.allison <nethack.allison>
Thu, 13 Feb 2003 11:04:56 +0000 (11:04 +0000)
<email deleted> wrote:
> comments: When I try to write in the dust, with my finger, on a
> tombstone, it works the first time, but after that I'm getting a
> message that I can not erase what's written here.  Is that an
> intentional way of preventing us gaining a bunch of levels fighting

5 days, no objections to proposed code change.

src/engrave.c

index b4bc4c4c98c79bee74e3edf6db70dedda1640b11..a72b327fdd826a80edfec819b581e209a668e585 100644 (file)
@@ -530,7 +530,11 @@ doengrave()
                return(0);
        }
        if (IS_GRAVE(levl[u.ux][u.uy].typ)) {
-           if (!levl[u.ux][u.uy].disturbed) {
+           if (otmp == &zeroobj) { /* using only finger */
+               You("would only make a small smudge on the %s.",
+                       surface(u.ux, u.uy));
+               return(0);
+           } else if (!levl[u.ux][u.uy].disturbed) {
                You("disturb the undead!");
                levl[u.ux][u.uy].disturbed = 1;
                (void) makemon(&mons[PM_GHOUL], u.ux, u.uy, NO_MM_FLAGS);