Feature #1900 ยป 1900.patch
| server/cityturn.c | ||
|---|---|---|
|
if (pextra != nullptr && !tile_has_extra(ptile, pextra)) {
|
||
|
tile_add_extra(ptile, pextra);
|
||
|
update_tile_knowledge(ptile);
|
||
|
unit_list_iterate((city_tile(pcity))->units, punit) {
|
||
|
if (unit_has_type_flag(punit, UTYF_WORKERS)
|
||
|
&& punit->activity == ACTIVITY_SENTRY) {
|
||
|
punit->ssa_controller = SSA_AUTOWORKER;
|
||
|
send_unit_info(NULL, punit);
|
||
|
}
|
||
|
}
|
||
|
unit_list_iterate_end;
|
||
|
return TRUE;
|
||
|
}
|
||