(tend): Fix rev. 1.20: used to send bulletin to last tendee's owner,
unless that's the player, regardless of success. Send them for every successful tend to a foreign ship.
This commit is contained in:
parent
4895745773
commit
7cc14a2c9a
1 changed files with 5 additions and 4 deletions
|
@ -172,6 +172,11 @@ tend(void)
|
|||
target.shp_item[ip->i_uid] = ontarget + transfer;
|
||||
ontender -= transfer;
|
||||
total += transfer;
|
||||
if (transfer && target.shp_own != player->cnum) {
|
||||
wu(0, target.shp_own, "%s tended %d %s to %s\n",
|
||||
cname(player->cnum), total, ip->i_name,
|
||||
prship(&target));
|
||||
}
|
||||
}
|
||||
expose_ship(&tender, &target);
|
||||
putship(target.shp_uid, &target);
|
||||
|
@ -183,10 +188,6 @@ tend(void)
|
|||
pr("%d total %s transferred %s %s\n",
|
||||
total, ip->i_name, (amt > 0) ? "off of" : "to",
|
||||
prship(&tender));
|
||||
if (target.shp_own != player->cnum) {
|
||||
wu(0, target.shp_own, "%s tended %d %s to %s\n",
|
||||
cname(player->cnum), total, ip->i_name, prship(&target));
|
||||
}
|
||||
tender.shp_item[ip->i_uid] = ontender;
|
||||
tender.shp_mission = 0;
|
||||
putship(tender.shp_uid, &tender);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue