Feature #2145 ยป 0052-Remove-transferred-city-from-aarea-cities-list.patch
| server/citytools.c | ||
|---|---|---|
|
city_rally_point_clear(pcity);
|
||
|
/* Clear pointer to old owner's access areas */
|
||
|
pcity->aarea = nullptr;
|
||
|
if (pcity->aarea != nullptr) {
|
||
|
city_list_remove(pcity->aarea->cities, pcity);
|
||
|
pcity->aarea = nullptr;
|
||
|
}
|
||
|
/* Activate AI control of the new owner. */
|
||
|
CALL_PLR_AI_FUNC(city_got, ptaker, ptaker, pcity);
|
||