Bug #2484 » 0001-find_rampage_target-Accept-a-want-equal-to-the-thres.patch
| 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;
|
||
|
}
|
||