Project

General

Profile

Bug #1257 » 0023-Fix-worklist-purging-for-units-that-cannot-be-update.patch

S3_1 - Marko Lindqvist, 03/19/2025 01:05 AM

View differences:

server/cityturn.c
/* Maybe we can just upgrade the target to what the city /can/ build. */
if (U_NOT_OBSOLETED == pupdate) {
/* Nope, we're stuck. Skip this item from the worklist. */
purge = FALSE;
/* Nope, we're stuck. Skip this item from the worklist. */
if (ptarget->require_advance != NULL
&& TECH_KNOWN != research_invention_state
(research_get(pplayer),
......
saved_id);
}
city_checked = FALSE;
break;
if (!purge) {
break;
}
} else {
purge = !can_city_build_unit_later(nmap, pcity, pupdate);
}
......
city_checked = FALSE;
}
} else {
/* Yep, we can go after pupdate instead. Joy! */
/* Yep, we can go after pupdate instead. Joy! */
notify_player(pplayer, city_tile(pcity), E_WORKLIST, ftc_server,
_("Production of %s is upgraded to %s in %s."),
utype_name_translation(ptarget),
(2-2/2)