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.
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;
}
}