From 608490ad98a32c3a150ba111db9de7a86d0d97ba Mon Sep 17 00:00:00 2001 From: PatR Date: Sat, 10 Dec 2022 18:00:44 -0800 Subject: [PATCH] more zapping while hiding-under The previous commit had the up/down test backward. Also the commit log text described the old behavior incorrectly: zapping down while hiding-under skipped the top item but zapping up hit the whole pile. Still not adequately tested. --- src/zap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zap.c b/src/zap.c index b77e6a024..99b31b139 100644 --- a/src/zap.c +++ b/src/zap.c @@ -2305,11 +2305,11 @@ bhitpile( if (hidingunder) { if (first) { first = FALSE; /* reset for next item */ - if (zz < 0) /* down when hiding-under skips first item */ + if (zz > 0) /* down when hiding-under skips first item */ continue; } else { /* !first */ - if (zz > 0) /* up when hiding-under skips rest of pile */ + if (zz < 0) /* up when hiding-under skips rest of pile */ continue; } }