subs: Use lnd_put_one() in lnd_put(), lnd_mar_put()

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2014-01-25 16:13:52 +01:00
parent 56cadfe157
commit 86c7249ca9

View file

@ -539,9 +539,7 @@ lnd_mar_put(struct emp_qelem *list, natid actor)
if (llp->mobil < -127) if (llp->mobil < -127)
llp->mobil = -127; llp->mobil = -127;
lp->lnd_mobil = llp->mobil; lp->lnd_mobil = llp->mobil;
putland(lp->lnd_uid, lp); lnd_put_one(llp);
emp_remque(qp);
free(qp);
} }
} }
@ -549,14 +547,10 @@ void
lnd_put(struct emp_qelem *list) lnd_put(struct emp_qelem *list)
{ {
struct emp_qelem *qp, *next; struct emp_qelem *qp, *next;
struct ulist *llp;
for (qp = list->q_back; qp != list; qp = next) { for (qp = list->q_back; qp != list; qp = next) {
next = qp->q_back; next = qp->q_back;
llp = (struct ulist *)qp; lnd_put_one((struct ulist *)qp);
putland(llp->unit.land.lnd_uid, &llp->unit.land);
emp_remque(qp);
free(qp);
} }
} }