From: nethack.rankin Date: Wed, 6 Feb 2002 07:04:34 +0000 (+0000) Subject: autodig bit X-Git-Tag: MOVE2GIT~3242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41bb37c3697a0517313c87cc060a847bd8260435;p=nethack autodig bit --- diff --git a/src/hack.c b/src/hack.c index f14753aa4..8810578e4 100644 --- a/src/hack.c +++ b/src/hack.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)hack.c 3.4 2001/06/02 */ +/* SCCS Id: @(#)hack.c 3.4 2002/02/05 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -544,8 +544,8 @@ boolean test_only; } else if (tunnels(youmonst.data) && !needspick(youmonst.data)) { /* Eat the rock. */ if (!test_only && still_chewing(x,y)) return FALSE; - } else if (flags.autodig && !flags.run && !flags.nopick && uwep && - (uwep->otyp == PICK_AXE || uwep->otyp == DWARVISH_MATTOCK)) { + } else if (flags.autodig && !flags.run && !flags.nopick && + uwep && is_pick(uwep)) { /* MRKR: Automatic digging when wielding the appropriate tool */ if (!test_only) use_pick_axe2(uwep);