Project

General

Profile

Bug #2484 » 0001-find_rampage_target-Accept-a-want-equal-to-the-thres.patch

Sweet Tea Dorminy, 11/15/2026 01:56 AM

View differences:

ai/default/daiunit.c
thresh = (move_needed ? thresh_move : thresh_adj);
want = (want < 0 ? -want : want);
if (want > max_want && want > thresh) {
/* The new want exceeds both the previous maximum
* and the relevant threshold, so it's worth recording */
if (want > max_want && want >= thresh) {
/* The new want exceeds the previous maximum and reaches
* the relevant threshold, so it's worth recording */
max_want = want;
ptile = iter_tile;
}
(1-1/2)