From: nethack.allison Date: Thu, 13 Feb 2003 11:04:56 +0000 (+0000) Subject: tombstone engraving with fingers X-Git-Tag: MOVE2GIT~2185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edee769d37e0657dbdca832a1b5f4fe0987d1b2e;p=nethack tombstone engraving with fingers 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. --- diff --git a/src/engrave.c b/src/engrave.c index b4bc4c4c9..a72b327fd 100644 --- a/src/engrave.c +++ b/src/engrave.c @@ -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);