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:
parent
464094a693
commit
6de86720b2
1 changed files with 2 additions and 2 deletions
|
@ -305,8 +305,8 @@ pln_dropoff(struct emp_qelem *list, struct ichrstr *ip, coord tx, coord ty,
|
||||||
}
|
}
|
||||||
there += amt;
|
there += amt;
|
||||||
if (there > max) {
|
if (there > max) {
|
||||||
pr("%d excess %s discarded\n", max - there, ip->i_name);
|
pr("%d excess %s discarded\n", there - max, ip->i_name);
|
||||||
amt = max - there;
|
amt -= there - max;
|
||||||
there = max;
|
there = max;
|
||||||
}
|
}
|
||||||
pr("%d %s landed safely", amt, ip->i_name);
|
pr("%d %s landed safely", amt, ip->i_name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue