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.
This commit is contained in:
@@ -2305,11 +2305,11 @@ bhitpile(
|
|||||||
if (hidingunder) {
|
if (hidingunder) {
|
||||||
if (first) {
|
if (first) {
|
||||||
first = FALSE; /* reset for next item */
|
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;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
/* !first */
|
/* !first */
|
||||||
if (zz > 0) /* up when hiding-under skips rest of pile */
|
if (zz < 0) /* up when hiding-under skips rest of pile */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user