yet more knockback induced dismount

The revision to directed dismount during knockback introduced a bug.
Need parentheses to prevent || that follows ?: from binding with :.
This commit is contained in:
PatR
2022-10-28 00:27:32 -07:00
parent 57617da39b
commit d2fe949ab9

View File

@@ -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 */