Fix fly and drop to report discarded cargo items correctly

When d of n cargo items are discarded for want of space, pln_dropoff()
reported -d items discarded and -d items unloaded.  Already broken in
BSD Empire 1.1.
This commit is contained in:
Markus Armbruster 2010-04-18 18:36:55 +02:00
parent 464094a693
commit 6de86720b2

View file

@ -305,8 +305,8 @@ pln_dropoff(struct emp_qelem *list, struct ichrstr *ip, coord tx, coord ty,
}
there += amt;
if (there > max) {
pr("%d excess %s discarded\n", max - there, ip->i_name);
amt = max - there;
pr("%d excess %s discarded\n", there - max, ip->i_name);
amt -= there - max;
there = max;
}
pr("%d %s landed safely", amt, ip->i_name);