From d2fe949ab9a15724189e590f4fc9ca3772d0c51e Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 28 Oct 2022 00:27:32 -0700 Subject: [PATCH] yet more knockback induced dismount The revision to directed dismount during knockback introduced a bug. Need parentheses to prevent || that follows ?: from binding with :. --- src/steed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steed.c b/src/steed.c index 4c3528029..bc145ffbd 100644 --- a/src/steed.c +++ b/src/steed.c @@ -516,7 +516,7 @@ landing_spot( spots are distance 1 and diagonal ones distance 2; treating one as better than the other is arbitary and not wanted for DISMOUNT_KNOCKED) */ - || (best_j == -1) ? (distance < min_distance) : (j < 3) + || ((best_j == -1) ? (distance < min_distance) : (j < 3)) /* or equally good, maybe substitute this one */ || (distance == min_distance && !rn2(viable))) { /* traps avoided on pass 0; boulders avoided on 0 and 1 */