Project

General

Profile

Bug #434 ยป 0001-AI-Fix-threaded-AI-build.patch

Marko Lindqvist, 04/10/2024 01:29 AM

View differences:

ai/threaded/taicity.c
struct tai_tile_state state = { .uw_max = 0, .uw_max_base = 0, .worst_worked = FC_INFINITY,
.orig_worst_worked = 0, .old_worst_worked = FC_INFINITY };
struct unit_list *units = NULL;
const struct civ_map *nmap = &(wld.map);
switch (limit) {
case TWTL_CURRENT_UNITS:
......
break;
}
city_tile_iterate_index(city_map_radius_sq_get(pcity), city_tile(pcity),
city_tile_iterate_index(nmap, city_map_radius_sq_get(pcity), city_tile(pcity),
ptile, cindex) {
tai_tile_worker_task_select(pplayer, pcity, ptile, cindex, units, &worked, &unworked,
&state, limit);
    (1-1/1)