but is completely counterproductive, if killunhomed option is set.
In such case units others than settlers are dying after at least 10 turns and you can't do anything (besides disbanding them to collect few shields).
Therefore I propose small patch in function can_unit_change_homecity_to in common/unit.c
Code: Select all
return (punit && pcity
&& ((punit->homecity > 0) || (game.server.killunhomed >0))
&& city_owner(acity) == unit_owner(punit)
&& punit->homecity != acity->id);
Not sure if brackets are needed, added them to enhance code.