+/*
+ * Ask user to confirm sector abandonment, if any.
+ * All land units in LIST must be in the same sector.
+ * If removing the land units in LIST would abandon their sector, ask
+ * the user to confirm.
+ * Return zero when abandonment was declined, else non-zero.
+ */
+int lnd_abandon_askyn(struct emp_qelem *list)
+{
+ struct ulist *llp;
+ struct sctstr sect;
+ struct emp_qelem *qp;
+
+ if (QEMPTY(list))
+ return 1;
+ llp = (struct ulist *)list->q_back;
+ getsect(llp->unit.land.lnd_x, llp->unit.land.lnd_y, §);
+ if (!abandon_askyn(§, I_CIVIL, 0, llp))
+ return 0;
+ if (!check_sect_ok(§))
+ return 0;
+ for (qp = list->q_back; qp != list; qp = qp->q_back) {
+ if (!check_land_ok(&((struct ulist *)qp)->unit.land))
+ return 0;
+ }
+ return 1;
+}
+