From f2fe193b03763241dbbb0a154e79c90f734966a4 Mon Sep 17 00:00:00 2001 From: PatR Date: Tue, 18 Dec 2018 03:13:41 -0800 Subject: [PATCH] suppress dead code in move_special() This dead code was already dead in 3.4.3; I didn't look any further back. --- src/priest.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/priest.c b/src/priest.c index 4a3dd185d..d97886c73 100644 --- a/src/priest.c +++ b/src/priest.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 priest.c $NHDT-Date: 1501725407 2017/08/03 01:56:47 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.44 $ */ +/* NetHack 3.6 priest.c $NHDT-Date: 1545131519 2018/12/18 11:11:59 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.45 $ */ /* Copyright (c) Izchak Miller, Steve Linhart, 1989. */ /* NetHack may be freely redistributed. See license for details. */ @@ -53,7 +53,9 @@ register xchar omx, omy, gx, gy; coord poss[9]; long info[9]; long allowflags; +#if 0 /* dead code; see below */ struct obj *ib = (struct obj *) 0; +#endif if (omx == gx && omy == gy) return 0; @@ -121,6 +123,7 @@ pick_move: newsym(nix, niy); if (mtmp->isshk && !in_his_shop && inhishop(mtmp)) check_special_room(FALSE); +#if 0 /* dead code; maybe someday someone will track down why... */ if (ib) { if (cansee(mtmp->mx, mtmp->my)) pline("%s picks up %s.", Monnam(mtmp), @@ -128,6 +131,7 @@ pick_move: obj_extract_self(ib); (void) mpickobj(mtmp, ib); } +#endif return 1; } return 0; -- 2.40.0