Project

General

Profile

Actions

Bug #2495

open

AI: settler never considers the start tile(s)

Added by Sweet Tea Dorminy 4 days ago. Updated 1 day ago.

Status:
In Review
Priority:
Normal
Category:
AI
Target version:
Start date:
11/22/2026
Due date:
% Done:

0%

Estimated time:

Description

settler_map_iterate() walks pf_map_move_costs_iterate() with COND_from_start=FALSE. This means that if a settler happens to be on the best site when it looks for a target, it never rates it and walks to a neighbour, founding a turn later on a worse tile. (This mostly happens at game start, but it can also happen if a settler decides to change target while travelling.)

Attached patch just flips to iterate start tile; turns is 0 there, so the site gets its full value. Applies to main, S3_3 and S3_2.


Files

Actions

Also available in: Atom PDF