struct ulist *llp;
char buf[512];
- if (QEMPTY(olist))
- return;
for (qp = olist->q_forw; qp != olist; qp = next) {
next = qp->q_forw;
llp = (struct ulist *)qp;
else
llp->unit.land.lnd_ship = -1;
}
- if (QEMPTY(olist))
- return;
+
if (def->type == EF_SECTOR) {
if (opt_INTERDICT_ATT) {
lnd_sweep(olist, 0, 0, player->cnum);
} else {
sprintf(buf, "boards %s", prcom(0, def));
}
- if (QEMPTY(olist))
- return;
+
for (qp = olist->q_forw; qp != olist; qp = next) {
next = qp->q_forw;
llp = (struct ulist *)qp;
lnd_print(player->cnum, llp, buf);
}
- if (QEMPTY(olist))
- return;
+
lnd_put(olist);
}